开发者

Not able to handle UIInterfaceOrientationPortraitUpsideDown for view Controller for iPad

开发者 https://www.devze.com 2023-02-02 10:03 出处:网络
In my iPad app i have tabbarController for firstView, for tabbarControlleri added button when we press that, one viewcontro开发者_StackOverflow中文版ller will come.

In my iPad app i have tabbarController for firstView, for tabbarController i added button when we press that, one viewcontro开发者_StackOverflow中文版ller will come. My problem is when i am trying to turn that viewcontroller in PortraitUpsideDown, it was not comming to PortraitUpsideDown. The code i use in that viewController is

- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
// Overriden to allow any orientation.
return(interfaceOrientation == UIInterfaceOrientationPortrait || interfaceOrientation == UIInterfaceOrientationPortraitUpsideDown);

// return YES; }

}

Can anyone tell me that What mistake i made or anything is there to add. Thank u.

0

精彩评论

暂无评论...
验证码 换一张
取 消