Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let refreshAlert = UIAlertController(title: "Alert", message: "Are you sure ?", preferredStyle: UIAlertControllerStyle.Alert)
- var imageView = UIImageView(frame: CGRectMake(220, 10, 40, 40))
- let yourImage = UIImage(named: "delete")
- imageView.image = yourImage
- refreshAlert.view.addSubview(imageView)
- refreshAlert.addAction(UIAlertAction(title: "Ok", style: .Default, handler: { (action: UIAlertAction!) in ...
- let image = UIImage(named: "myImage")
- var action = UIAlertAction(title: "title", style: .Default, handler: nil)
- action.setValue(image, forKey: "image")
- alert.addAction(action)
- UIAlertAction* HDQuality = [UIAlertAction
- actionWithTitle:@"🔒 lockk Action"
- style:UIAlertActionStyleDefault
- handler:^(UIAlertAction * action)
- {
- [alert dismissViewControllerAnimated:YES completion:nil];
- }];
- [alert addAction:HDQuality];
Add Comment
Please, Sign In to add comment