Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/ios/93.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iOS 9中的UIAlertView问题_Ios_Ios9 - Fatal编程技术网

iOS 9中的UIAlertView问题

iOS 9中的UIAlertView问题,ios,ios9,Ios,Ios9,升级到iOS9后,myUIAlertview或UIAlertcontroller不显示警报,只显示随附的透明黑色背景 谁能告诉我我做错了什么!。在iOS9版本下,一切都正常 可能是某些东西已经在主线程上运行,因此警报视图不可见。请尝试此操作 [[NSOperationQueue mainQueue] addOperationWithBlock:^{ alert = [[UIAlertView alloc]initWithTitle:@"" message:[NSString stringW

升级到iOS9后,my
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中被折旧+