I am using the MPMoviePlayerController in my application to play videos. My application is working only in portrait mode. and I want application video should only play in landscape mode only. So please can any one suggest how i do this. Right now my video is playing in Portrait mode.
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
Use this Code in your MPMoviePlayerController,
Instead of
UIInterfaceOrientationLandscapeLeft
you can useUIInterfaceOrientationLandscapeRight
also...For doing this, You need to subclass the
MPMoviePlayerController
class.and you need to implement the
shouldAutoRotate
method in the implementation and return only landscape modeAnd you need to create
yourMovie
instance instead ofMPMoviePlayerController