UIAlertController *testAlertController = [UIAlertController alertControllerWithTitle:nil message:nil preferredStyle:UIAlertControllerStyleActionSheet];
[self presentViewController:testAlertController animated:YES completion:nil];
具体原因就像上面示例,UIAlertController对象的title和message都指定为nil,并且没有添加UIAlertAction,就会出现闪退。title、message只要有一个指定了,或至少添加了一个action,就不会出现闪退。。。