Thanks for the suggestion.
Following your lead, I called +attemptRotationToDeviceOrientation after
installing, and again after removing, the movie-player controller. I made this
my -shouldAutorotateToInterfaceOrientation: method:
- (BOOL) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)
interfaceOrientation
{
if (self.demoMovieController) {
return interfaceOrientation == self.demoOrientation;
}
else {
self.demoOrientation = interfaceOrientation;
return YES;
}
}
This did prevent the movie from rotating.
However, when the movie was dismissed, the screen was black. Rotating the
device makes what looks to be the master view briefly visible at the corners.
So (I am guessing) the detail view is black, and full-screen, and the master
view is re-laid-out so that its right edge is at the left edge of the screen.
Earlier, I had tried only the -shouldAutorotateToInterfaceOrientation: method
above, without + attemptRotationToDeviceOrientation. The effect was the same as
without attemptRotation….
— F
On 3 Feb 2012, at 12:09 PM, Evadne Wu wrote:
> Just a wild guess, but can you use +[UIViewController
> attemptRotationToDeviceOrientation] somewhere as a potential workaround? It
> seems that the behavior of the movie player messes with rotation notification
> handling. Another workaround if you need to target iOS 4.x is to show / hide
> the status bar a couple of times.
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]