I have the simple code of:
[otherClass doMethodOneWhichHasAnimation];
and that animation lasts 0.8 seconds. Followed by code that pushes a viewcontroller:
SchemeView *schemeView = [[SchemeView alloc] init];
[self.navigationController pushViewController:schemeView animated:YES];
[schemeView release];
The problem is, it pushes the viewcontroller without waiting, and I'd like it to wait. Doing delay just delays the whole thing, including the first animation from starting.
How can i get it to wait the 0.8 seconds before running the second bit of code?