Question

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?

Was it helpful?

Solution

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

OTHER TIPS

try this

[yourAlert performSelectorOnMainThread:@selector(show) withObject:nil waitUntilDone:NO];
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top