0

I used MPMoviePlayerViewController to play a video and when back to app, I need app force return portrait

Cœur
  • 37,241
  • 25
  • 195
  • 267
user1561904
  • 243
  • 3
  • 11

1 Answers1

0

I think the best way to solve this is by using https://stackoverflow.com/a/13800907/620197

These are callbacks who only gets called when the user autorotates - you can tell the user to rotate the device and then the autorotate callback will be called and will show only the supported orientation.

If you still want force rotation i believe you need to dismiss the controller - try this and please do tell me if it worked out for you: IOS 6 force device orientation to landscape

I have searched the web for a long time for a force rotation solution that will please me with no success, it almost looks like apple Doesnt want us to be able to so this.

Community
  • 1
  • 1
henTdev
  • 828
  • 2
  • 7
  • 12