AlertviewController Exception for action sheet

   
If you are used the action sheet for the alert view controller then it will display an exception.The Fail case is below.

  let alert = UIAlertController(title: AppTitle, message: "message", preferredStyle: .actionsheet)

But if you use alert type then it will not display the exception.The working case below.



     let alert = UIAlertController(title: AppTitle, message: "message", preferredStyle: .alert)

Comments

Popular posts from this blog

Invalid bundle error while upload the app to the app Store

Convert NsNumber, NSDate to String in iOS Swift

Global LocationManager Singleton class iOS Swift