• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: MPMoviePlayerController, full-screen, and rotation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: MPMoviePlayerController, full-screen, and rotation


  • Subject: Re: MPMoviePlayerController, full-screen, and rotation
  • From: Fritz Anderson <email@hidden>
  • Date: Fri, 03 Feb 2012 13:03:46 -0600

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@hidden)

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:

This email sent to email@hidden


References: 
 >MPMoviePlayerController, full-screen, and rotation (From: Fritz Anderson <email@hidden>)

  • Prev by Date: Re: MPMoviePlayerController, full-screen, and rotation
  • Next by Date: Re: How to show last name of user in text field whose first name is selected in popup button
  • Previous by thread: Re: MPMoviePlayerController, full-screen, and rotation
  • Next by thread: Stop "developer tools access..." and "gdb-i386-apple-darwin..." alerts
  • Index(es):
    • Date
    • Thread