有谁知道如何解决这个错误?
- (NSUInteger)supportedInterfaceOrientations
“supportedinterfaceOrientationMask”(又名“enum UIInterfaceOrientationMask”)与“NSUInteger”(又名“unsigned long”)实现中的返回类型冲突
最佳答案
iOS 9 中的文档发生了变化,如果您转到 UIViewController.h,它现在将 supportedInterfaceOrientations 声明为:
- (UIInterfaceOrientationMask)supportedInterfaceOrientations NS_AVAILABLE_IOS(6_0);
如果您更改返回类型,Xcode 将停止报错。
关于ios - xcode 7 中的菜单栏错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32663037/