Artificial intelligent assistant

UIAlertViewでWarningが出ます var alert:UIAlertView=UIAlertView() alert.title="week" alert.message=texts[indexPath.row] alert.addButtonWithTitle("OK") alert.show() * * * UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead UIAlertView is deprecated. Use UIAlertController with a preferredStyle of UIAlertControllerStyleAlert instead swift2.0iOS9.1

UIAlertController


var alert=UIAlertController(title: "week", message: texts[indexPath.row], preferredStyle: .Alert)

let defaultAction = UIAlertAction(title: "OK", style: .Default, handler: nil)
alertController.addAction(defaultAction)

presentViewController(alert, animated: true, completion: nil)


xcX3v84RxoQ-4GxG32940ukFUIEgYdPy 428e9fabbdf37ab2beaa367420637c0f