I had the same problem and in my case this happened when I tried to show an ActionSheet on my self.view while my self.view was presenting another viewController.
This is the crash: "Sheet can not be presented because the view is not in a window"
example for the problem:
[modalViewController dismissModalViewControllerAnimated:YES];
[actionSheet showInView:self.view];
I solved the problem by waiting for the modalViewController to dismiss and then show the ActionSheet.
Solution:
[modalViewController dismissModalViewControllerAnimated:YES];
[actionSheet performSelector:@selector(showInView:) withObject:self.view afterDelay:0.6];
Hope this helps a lot of people :)