0
我的UIAlertController未顯示,但代碼看起來正確。UIAlertController未顯示任何內容
UIAlertController *alertController = [UIAlertController alertControllerWithTitle:@"Lorem"
message:@"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis sed ultrices nisl."
preferredStyle:UIAlertControllerStyleAlert];
[alertController addAction:[UIAlertAction actionWithTitle:@"OK" style:UIAlertActionStyleDefault handler:nil]];
[self presentViewController:alertController animated:YES completion:nil];