【问题标题】:Menu bar Error in xcode 7xcode 7中的菜单栏错误
【发布时间】:2015-09-19 01:00:18
【问题描述】:

有人知道如何解决这个错误吗?

- (NSUInteger)supportedInterfaceOrientations

“supportedinterfaceOrientationMask”(又名“枚举 UIInterfaceOrientationMask”)与“NSUInteger”(又名“unsigned long”)实现中的返回类型冲突

【问题讨论】:

    标签: ios swift2 xcode7


    【解决方案1】:

    iOS 9 中更改的文档,如果您转到 UIViewController.h,它现在将supportedInterfaceOrientations 声明为:

    - (UIInterfaceOrientationMask)supportedInterfaceOrientations NS_AVAILABLE_IOS(6_0);
    

    如果您更改返回类型,Xcode 将停止抱怨。

    【讨论】:

    • 谢谢你修复它。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-08-25
    相关资源
    最近更新 更多