Swift - 错误'Expected','separator'和'表达式列表中的预期表达式' [英] Swift - Error 'Expected ',' separator' and 'Expected expression in list of expressions'
本文介绍了Swift - 错误'Expected','separator'和'表达式列表中的预期表达式'的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
let screenBounds = UIScreen.mainScreen().bounds
var initialOrigin: CGFloat = UIScreen.mainScreen().bounds.height - 108
let offset: CGFloat = 108
var lastItem: ViewModel?
var currentURIs = [NSURL]()
lazy var panRecognizer: UIPanGestureRecognizer = UIPanGestureRecognizer(target: self, action:
#selector(PlayerController.handlePanGesture(_:)))
lazy var tapRecognizer: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action:
#selector(PlayerController.handleTapGesture(_:)))
获取错误'预期','分隔符'
和'表达式列表中的预期表达式'
对于上面的代码......如果有人启发我会很棒......
Getting Errors 'Expected ',' separator'
and 'Expected expression in list of expressions'
for the above code..It would be great..if somebody enlighten me...
推荐答案
将Xcode更新为7.3新的#selector语法仅适用于Xcode 7.3(或更新版本)
Update the Xcode to 7.3 The new #selector syntax will only work in Xcode 7.3 (or newer)
这篇关于Swift - 错误'Expected','separator'和'表达式列表中的预期表达式'的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文