Pregunta

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?

¿Fue útil?

Solución

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

Otros consejos

try this

[yourAlert performSelectorOnMainThread:@selector(show) withObject:nil waitUntilDone:NO];
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top