1

I have a navigation view that contains a tableview. If one of the tableview items is clicked, the navigation controller passes the user to the detail view.

This usually works perfectly. However, if the user clicks the back button from the detail view and moves back and forth between the tableview and detail view too quickly, the app will sometimes become glitchy.

This glitch occurs rarely, but when it does, the back button makes the view transition to the left, but it just shows the detail view again. Then I need to press the back button again in order to actually go back to the list view.

Does anyone know why this might be happening? Or is there a bit of code I can post to help resolve this? Thanks!

4

1 回答 1

1

Try this:

//in viewwillappear
appDelegate.window.userInteractionEnabled = FALSE;
[self performSelector:@selector(userInteraction) withObject:nil afterDelay:0.5];


-(void)userInteraction
{
    appDelegate.window.userInteractionEnabled = TRUE;
}
于 2013-07-16T10:06:38.957 回答