xcode 7 中的菜单栏错误
Menu bar Error in xcode 7
有谁知道如何解决这个错误?
- (NSUInteger)supportedInterfaceOrientations
在 'supportedinterfaceOrientationMask'(又名 'enum UIInterfaceOrientationMask')与 'NSUInteger'(又名 'unsigned long')
的实现中存在冲突的 return 类型
文档在 iOS 9 中更改,如果您转到 UIViewController.h,它现在将 supportedInterfaceOrientations 声明为:
- (UIInterfaceOrientationMask)supportedInterfaceOrientations NS_AVAILABLE_IOS(6_0);
如果您更改 return 类型 Xcode 将停止抱怨。
有谁知道如何解决这个错误?
- (NSUInteger)supportedInterfaceOrientations
在 'supportedinterfaceOrientationMask'(又名 'enum UIInterfaceOrientationMask')与 'NSUInteger'(又名 'unsigned long')
的实现中存在冲突的 return 类型文档在 iOS 9 中更改,如果您转到 UIViewController.h,它现在将 supportedInterfaceOrientations 声明为:
- (UIInterfaceOrientationMask)supportedInterfaceOrientations NS_AVAILABLE_IOS(6_0);
如果您更改 return 类型 Xcode 将停止抱怨。