Reputation: 33
I'm pushing a view on to my navigation controller -
[self.navigationController pushViewController:_gameOverViewController animated:YES];
In the new view's viewDidAppear
, I show an alert view -
UIAlertView* alert = [[[UIAlertView alloc]
initWithTitle:@"alert title"
message:@"some text"
delegate:self
cancelButtonTitle:@"Rate It!"
otherButtonTitles:@"No Thanks",
@"Don't ask again", nil] autorelease];
[alert show];
In iOS 6 and earlier this works fine. The 'gameOver' view is visible behind the alert view. Once the alert view is dismissed the game over view is visible. In iOS 7, the alert view shows over the previous view. When the alert view is dismissed, the previous view is still visible. The 'gameOver' view is never presented to the user.
Is there a better way to show UIAlertView
in iOS 7?
Upvotes: 0
Views: 181
Reputation: 33
It came down to popping a view off the navigationcontroller and pushing a new one on at the same time. in ios6 and below this worked fine. in ios7 it appears that you cant push a new view onto the stack until the previous animation has stopped.
Upvotes: 1