Am having troubles with xcode implementing deprecated method

  • ******* -(void)alertView:(UIAlertView *)alertView didDismissWithButtonIndex:(NSInteger)buttonIndex {************(Implementing deprecated method line)

UIAlertView itself is deprecated.

Instead, use a UIAlertController, and add an action for the button(s).

Perhaps something like:

Code Block
let alertController = UIAlertController(title: "Title", message: "Message", preferredStyle: .alert)
alertController.addAction(UIAlertAction(title: "Some action", style: .default) { (action: UIAlertAction) -> Void in
// Code for button action...
})
alertController.addAction(UIAlertAction(title: "OK", style: .default, handler: nil))

I recommend you to try found a professional team!
Am having troubles with xcode implementing deprecated method
 
 
Q