Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIAlertView animation lag when shown

I am experiencing an odd lag in the animation whenever I display a UIAlertView. The buttons and labels on the alert view are appearing noticeably before the background. It is happening everywhere in the application that I display an alert

alert view lag

The alert in the example above is shown from the action method of the clear button:

-(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];
}

Does anyone know why this is happening / what I can do to stop it?

like image 801
Matt Colliss Avatar asked Jan 25 '26 17:01

Matt Colliss


1 Answers

Set "renders with edge antialiasing" to NO in the info.plist

like image 183
liamnichols Avatar answered Jan 27 '26 07:01

liamnichols



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!