NSSet! 出错
按视频写
override func touchesEnded(touches: NSSet!, withEvent event: UIEvent)
会出错,但换成下面这样就能通过
override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent)
是语言版本变了吗?
按视频写
override func touchesEnded(touches: NSSet!, withEvent event: UIEvent)
会出错,但换成下面这样就能通过
override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent)
是语言版本变了吗?
2015-04-23
举报