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

Saved Image in document directory and save path in coredata not able to fetch the image file iOS swift