我在更新之前的项目与
swift 1.1和
Xcode 6.1.1一起工作正常.我刚刚升级到swift 1.2并在我的AppDelegate中得到一个奇怪的错误
func application(application:UIApplication,didReceiveRemoteNotification userInfo:NSDictionary)
以及从UITextFieldDelegate派生的类
func textFieldDidBeginEditing(textField: UITextField!) -> Bool // called textfield for locationField clicked
说点什么
Objective-C method ‘application:didReceiveRemoteNotification:’
provided by method ‘application(:didReceiveRemoteNotification:)’
conflicts with optional requirement method
‘application(:didReceiveRemoteNotification:)’ in protocol
‘UIApplicationDelegate’
textFieldDidBeginEditing的错误是相同的:
Objective-C method ‘textFieldDidBeginEditing:’ provided by method
‘textFieldDidBeginEditing’ conflicts with optional requirement method
‘textFieldDidBeginEditing’ in protocol ‘UITextFieldDelegate’
有什么问题?
解决方法
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。