Objective-C method XXX conflicts with optional requirement method XXX
来源:互联网 发布:java 第三方登录 实例 编辑:程序博客网 时间:2024/06/01 07:56
下载了一个swift的代码例子,但编译时在
func application(application: UIApplication,
didFinishLaunchingWithOptions launchOptions: NSDictionary?) -> Bool {
}
出现错误:
Objective-C method ‘application:didFinishLaunchingWithOptions:’ provided by method ‘application(:didFinishLaunchingWithOptions:)’ conflicts with optional requirement method ‘application(:didFinishLaunchingWithOptions:)’ in protocol ‘UIApplicationDelegate’
经查找,将函数改为
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject:AnyObject]?) -> Bool
就好了。
原因尚不清楚。
0 0
- Objective-C method XXX conflicts with optional requirement method XXX
- Objective-C method "" provided by method "" conficts with optional requirement
- instance method 'xxxx' in category from 'xxx' conflicts with the same method
- Spring MVC -- xxx conflicts with existing xxx
- Java-cannot resolve method 'XXX'
- conflicts with same method from another category
- Method “xxx” with signature “xxx” is not applicable on this object
- Objective-C method "isMemberOfClass"
- Objective-C Method Swizzling
- Objective-C Method Swizzling
- Objective-C Method Swizzling
- Objective-C Method Swizzling
- objective-c中的method
- Objective-C 【Method Swizzle】
- Objective-C Method Swizzling
- file xxx from install of xxx conflicts with file from xxx
- ruby中undefined method ‘XXX' for 问题
- Xcode:duplicate declaration of method 'XXX'
- 深入理解JavaScript系列(22):S.O.L.I.D五大原则之依赖倒置原则DIP
- android: shape、selector、layer-list的使用做出设置按钮样式
- 将自定义类中的属性全部显示(包括多层次的)
- 冒泡排序
- 深入理解JavaScript系列(19):求值策略(Evaluation strategy)
- Objective-C method XXX conflicts with optional requirement method XXX
- 单片机晶振不起振原因及排除
- xcode 显示空间边界线 show bounds rectangles
- 深入理解JavaScript系列(17):面向对象编程之概论
- css text-align 对齐
- Spring和MyBatis环境整合
- 深入理解JavaScript系列(16):闭包(Closures)
- Keystore密钥库
- Dart网络编程-备忘录2.0