iOS 9中的UIAlertView问题
升级到iOS9后,myiOS 9中的UIAlertView问题,ios,ios9,Ios,Ios9,升级到iOS9后,myUIAlertview或UIAlertcontroller不显示警报,只显示随附的透明黑色背景 谁能告诉我我做错了什么!。在iOS9版本下,一切都正常 可能是某些东西已经在主线程上运行,因此警报视图不可见。请尝试此操作 [[NSOperationQueue mainQueue] addOperationWithBlock:^{ alert = [[UIAlertView alloc]initWithTitle:@"" message:[NSString stringW
UIAlertview
或UIAlertcontroller
不显示警报,只显示随附的透明黑色背景
谁能告诉我我做错了什么!。在iOS9版本下,一切都正常
可能是某些东西已经在主线程上运行,因此警报视图不可见。请尝试此操作
[[NSOperationQueue mainQueue] addOperationWithBlock:^{
alert = [[UIAlertView alloc]initWithTitle:@"" message:[NSString stringWithFormat:@"Reload data ?"] delegate:self cancelButtonTitle:@"Yes" otherButtonTitles:@"Cancel", nil];
[alert show];
}];
我使用这段代码来显示UIAlertView 这对我来说很好
UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@""
message:@""
delegate:self
cancelButtonTitle:@""
otherButtonTitles:@"", ..., nil];
[alert show];
请使用UIAlertViewController,而不是UIAlertView,因为它是去润滑的。请添加代码以显示此警报。我想您的意思是
UIAlertController
Dharmir。请共享您的代码UIAlertView
即使在iOS 9上也能在我的旧应用程序上正常运行。即使这在iOS 9中也适用,wii这会阻止我的应用程序在应用商店中被接受吗?鉴于UIAlertview在ios 8.0中被折旧+