iphone - MPMoviePlayerViewController Support landscape iOS 4.3 to 6.1 -
I have a question orientation about and,
Support my application to run portrait mode video but when When I start any video it will only run in landscape mode then after the video has completed it automatically comes the portrait mode.
I'm using
** MyMovieViewController.h of code below # import & lt; Media Player / Media Player H & gt; @ Interface Mimevie Week Controller: MP MPV Player Wii Controller @ and ** MimeViewController. M ** @ Implementation MimeViCiCentron - (ID) Init Wathanbinem: (NSSTING *) Nominee Ornel Bundle: (NSBindle *) Nebbundle Online {SEL = [Super Init Wide NewsName: NIBNAM Bundle: NIBBandalOnline]; If (self) {// custom initialization} back itself; } - (zero) viewDidoadload [[Super Viewedload]; // Setup an additional after loading the view} - (BOOL) must be atoroteret {not return; } - (NSUntengar) Supported Interface Orientation {return UIInterfaceOrientationMaskLandscapeRight | UIInterfaceOrientationMaskLandscapeLeft; } - (UIInterfaceOrientation) preferredInterfaceOrientationForPresentation {UIInterfaceOrientationLandscapeRight return; } - (bool) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation {return (interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft); } @end But above the code working in the iPhone 4.3 Simulator and my application support to 4.3 6.1.
So please help me out.
- (Ansuintegr) supported Intrfesorianteshn {return Uaiantifersorenteshnmskelandskep Wright | UIInterfaceOrientationMaskLandscapeLeft; } - (UIInterfaceOrientation) Preferred Interface Authentication Firing {return UIInterfaceOrientationLandscapeRight; } - (bool) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation {return (interfaceOrientation == UIInterfaceOrientationLandscapeRight || interfaceOrientation == UIInterfaceOrientationLandscapeLeft); } These devices are yes in a few ways, when your device is in the scenario. Then it does not support portrait mode.
Comments
Post a Comment