0

我创建了一个UISplitView,在splitView以横向模式加载后,我使用presentModalView显示一个模态视图,我的问题是模态视图始终处于纵向模式,找不到解决方案。Ipad ModalView旋转问题

UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];

它给我的横向方向,但使用

UIDeviceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]

给我画像。 (4.2下不工作)

感谢,

回答

0

我使用一个NSTimer和寮国我用它和它的功函数,那是一个有点棘手,但是这是我发现的,现在唯一的解决办法。

[NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(loadingModal:) userInfo:nil repeats:NO];