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

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实战
  • 参与学习       62626    人
  • 解答问题       541    个

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

进入课程

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信