Monday, August 18, 2014

UIAlertView Swift language iOS8

Code

 var alert=UIAlertController(title: "Warning", message: "Success", preferredStyle: UIAlertControllerStyle.Alert);
        
alert.addAction(UIAlertAction(title: "Click", style: UIAlertActionStyle.Cancel, handler:nil));


self.presentViewController(alert, animated: true, completion: nil);

No comments:

Post a Comment