开发者

Ipad ModalView rotation problem

开发者 https://www.devze.com 2023-02-06 14:51 出处:网络
I created a UISplitView, after the splitView is load in landscape mode, I display a modalView using the presentModalView, my problem is that the modalView is always in portrait mode, can\'t find the s

I created a UISplitView, after the splitView is load in landscape mode, I display a modalView using the presentModalView, my problem is that the modalView is always in portrait mode, can't find the solut开发者_StackOverflowion for that.

UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];

it gives me the landscape orientation but using

UIDeviceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation]

gives me Portrait. (not working under 4.2)

Thanks,


i'm using an NSTimer and loas my function with it and its work, thats a bit tricky but that is the only solution I found right now.

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

精彩评论

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