My app supports portrait orientation only, for some reason. The controller thus configured: Result : Video is played only in image mode (okay enough is expected). I tried: results : Landscape mode is available (great!), But if the "while playing user scenario 'taps, you will see this visual landscape mode Once the player is dismissed (not too much) Does anyone have an idea how to prevent controllers from appearing in the carribean mode? Players (personal pattern set by using no alternative Infrareoorianteshn UIDevice) I have something very similar Have done Parental Controls reject autorotate: Create and This is a dirty hack, but it works.
However, in some cases I need to display the video with a UIWebView (with the video tag) and it would be good that the user can see it in the picture or landscape.
- (BOOL) be Chahiaatorotettointrfesorianteshn: (Uaiantrfesorianteshn) Seintrfesorianteshn {return UIInterfaceOrientationIsPortrait (toInterfaceOrientation); }
- When a user starts a video - when the video stops, "to set it back to support all orientations Portrait"
- is to be (BOOL) Chahiaatorotettointrfesorianteshn: (Uaiantifesorianteshn) Seintrfesorenteshn is {// AutorotationEnabled played a video when it is toggled on / off return Otoroteshn? Yes: UIInterfaceOrientationIsPortrait (toInterfaceOrientation); }
- (BOOL) You should call your app when popping your controller. ShouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) Intrfesoriynteshn supported {// return orientation back so YES; }
- (bool) shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation) interfaceOrientation {// Return YES for supported orientations return (to InterfaceOrientation == UINFfaceAuthentication Portrait); }
in UINavigationControllerDelegate assigned representatives, temporarily modify the UIView stacks controller pops or push :.
- (minus) Navigation Controller: (UINavigationController *) Sun Hogashouwukantrolr: (UIViewController *) viewController animated: (BOOL) changed ads to view animated {// Force Picture autorotation force! If ([UIDevice currentDevice] .orientation = UIInterfaceOrientationPortrait!) {If ([ViewController isKindOfClass: [MovieWebViewController class]]!) {UIWindow * window = [[UIApplication sharedApplication] keyWindow]; UIView * View = [window.subviews ObjectAntIndex: 0]; [ViewFromSuperview]; [Insert windowviewviewview: visible: index: 0]; }}
Comments
Post a Comment