I just came across a crash showing a NSInvalidArgumentException with this message on an app which wasn\'t doing this before.
NSInvalidArgumentException
Application
Just remove
[tabBarController presentModalViewController:viewController animated:YES];
and keep
[self dismissModalViewControllerAnimated:YES];