我在显示
UIAlertView
时遇到了奇怪的动画延迟。警告视图上的按钮和标签在背景之前明显出现。在我显示警报的应用程序的任何地方都会发生这种情况。
-(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];
}
有人知道发生这种情况的原因或者我能做什么来阻止它吗?