0
如何在didLoad中使用以下方法或者在iPad模拟器中使用willAppear时,设备总是在横向模式下认为它处于纵向模式时。在启动时确定iPad的方向
UIDeviceOrientation orientation = [[UIDevice currentDevice] orientation];
NSLog(@"orientation - %i", UIInterfaceOrientationIsPortrait(orientation));
这在iPhone模拟器中正常工作,有没有另一种方法来找出设备的方向?
我已经尝试在app.plist中添加支持的方向,但仍然模拟器认为它在横向模式?
干杯,
非常感谢, – ChrisM