开发者

Not able to handle UIInterfaceOrientationPortraitUpsideDown for view Controller for iPad

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜