Say I'm doing something with iOS 7's interactive view controller transitions, and I'm handed the toViewController
and the fromViewController
, where only the fromViewController
is currently visible on screen.
If I wanted to get a snapshot of the fromViewController
I could easily do it with:
UIView *fromViewControllerSnapshot = [[UIScreen mainScreen] snapshotViewAfterScreenUpdates:YES];
But if I was looking for a snapshot including the status bar of toViewController
, I'm not sure how I'd do that, as it's not visible on screen yet.
As for why, I'd like to slide the full view controller including the status bar to the right as part of the transition to pop it and slide the other full view controller in at the same time, both moving their respective status bars.
Is it possible to get a snapshot of a view controller that's not 100% visible?