【发布时间】:2015-08-08 17:00:23
【问题描述】:
收到一条错误消息,提示 NSSet 没有为此 if 语句命名的成员
if let touch = touches.first as? UITouch {
}
【问题讨论】:
-
错误应该是自我解释的?
-
NSSet确实没有名为 first 的成员,但 Swift 类型Set有
标签: sprite-kit swift2 uipangesturerecognizer