为了账号安全,请及时绑定邮箱和手机立即绑定

touchesended失去焦点隐藏键盘显示“Consecutive Declarations On A Line Must Be Separated By ';'”

在十二生肖那一课里面
Xcode7:
override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) {
        yearOfBirth.resignFirstResponder()
    }
    touchesEnded后面那些是电脑tab后自动显示的。。
    然后就会出现编译错误:
    Consecutive declarations on a line must be separated by ';'
    不知道为什么= =求大神讲解一下下。。


正在回答

举报

0/150
提交
取消
使用Swift开发iOS8 App实战
  • 参与学习       62603    人
  • 解答问题       553    个

通过苹果最新Swift语言开发iOSApp,从零开始学习iOS的开发

进入课程

touchesended失去焦点隐藏键盘显示“Consecutive Declarations On A Line Must Be Separated By ';'”

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号