开发者

IPad ViewController pop animation style changed from sliding from right to left to sliding from bottom to top

The animation of pop view controller in i开发者_如何转开发Pad is changed unexpectedly from sliding from right to left to sliding from bottom only in Landscape mode. What could be the problem ?

Thank for your help.


It happened to me when I was supporting landscape and portrait, but on the viewcontrollers "supportedInterfaceOrientations" method I was returning "UIInterfaceOrientationMaskPortrait"

- (NSUInteger)supportedInterfaceOrientations {
  return UIInterfaceOrientationMaskPortrait;
}

This fixed it for me:

- (NSUInteger)supportedInterfaceOrientations {
  return  UIInterfaceOrientationMaskAll;
}
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜