【发布时间】:2019-10-02 04:09:54
【问题描述】:
我的代码适用于除 13 之外的版本。但在版本 13 中,该代码不适用于横向方向。 我的代码如下。
#if __IPHONE_OS_VERSION_MAX_ALLOWED < 90000
- (NSUInteger)supportedInterfaceOrientations
#else
- (UIInterfaceOrientationMask)supportedInterfaceOrientations
#endif
{
NSLog(@"Mask Orientaion begin");
return UIInterfaceOrientationMaskLandscapeRight;
}
- (UIInterfaceOrientation)preferredInterfaceOrientationForPresentation {
NSLog(@"Orientaion begin");
return UIInterfaceOrientationLandscapeRight;
}
请帮助我。谢谢
【问题讨论】:
标签: ios objective-c iphone