每当我显示一个UIAlertView时,我都会在动画中遇到一个奇怪的滞后。警报视图中的按钮和标签明显地出现在背景之前。在我显示警报的应用程序中,到处都会发生这种情况。

上述示例中的警报来自clear按钮的操作方法:
-(IBAction)clearButtonTapped:(id)sender {
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Clear Outbox" message:@"This will delete everything from your Outbox." delegate:nil cancelButtonTitle:@"Cancel" otherButtonTitles:@"OK",nil];
[alert show];
}有人知道为什么会发生这种事吗?我能做些什么来阻止它呢?
发布于 2014-05-15 13:34:18
在info.plist中将“呈现与边反混叠”设置为NO
发布于 2014-05-15 10:54:35
尝尝这个
[yourAlert performSelectorOnMainThread:@selector(show) withObject:nil waitUntilDone:NO];https://stackoverflow.com/questions/23675997
复制相似问题