Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to create a UIAlertView in swift

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 715
    Comment on it

    Hello friends , To create UIAlertView in swift ->

    UIAleartView is deprecated in iOS 9,
    so you need to use UIAlertController instead .

    let alertController = UIAlertController(title: test alert, message: this is a  test alert, preferredStyle: UIAlertControllerStyle.Alert)
      alertController.addAction(UIAlertAction(title: "Dismiss", style: UIAlertActionStyle.Default, handler: nil))
         self.presentViewController(alertController, animated: true, completion: nil)
    

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: