daily pastebin goal
25%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. let refreshAlert = UIAlertController(title: "Alert", message: "Are you sure ?", preferredStyle: UIAlertControllerStyle.Alert)
  2.  
  3.     var imageView = UIImageView(frame: CGRectMake(220, 10, 40, 40))
  4.     let yourImage = UIImage(named: "delete")
  5.     imageView.image = yourImage
  6.  
  7.     refreshAlert.view.addSubview(imageView)
  8.  
  9.     refreshAlert.addAction(UIAlertAction(title: "Ok", style: .Default, handler: { (action: UIAlertAction!) in ...
  10.    
  11. let image = UIImage(named: "myImage")
  12. var action = UIAlertAction(title: "title", style: .Default, handler: nil)
  13. action.setValue(image, forKey: "image")
  14. alert.addAction(action)
  15.    
  16. UIAlertAction* HDQuality = [UIAlertAction
  17.                                 actionWithTitle:@"🔒 lockk Action"
  18.                                 style:UIAlertActionStyleDefault
  19.                                 handler:^(UIAlertAction * action)
  20.                                 {
  21.                                     [alert dismissViewControllerAnimated:YES completion:nil];
  22.  
  23.  
  24.  
  25.                                 }];
  26.  
  27. [alert addAction:HDQuality];
RAW Paste Data
Top