変遷1
// Swift 1.0
touches: NSSet
// Swift 1.2
touches: Set<NSObject>
// Swift 2.0
touches: Set<UITouch>
変遷2
// Swift 2.0
UIEventの最後に?を追加
コード
Swift1.0
override func touchesBegan(touches: NSSet, withEvent event: UIEvent) { }
override func touchesMoved(touches: NSSet, withEvent event: UIEvent) { }
override func touchesEnded(touches: NSSet, withEvent event: UIEvent) { }
Swift1.2
override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) { }
override func touchesMoved(touches: Set<NSObject>, withEvent event: UIEvent) { }
override func touchesEnded(touches: Set<NSObject>, withEvent event: UIEvent) { }
Swift2.0
override func touchesBegan(touches: Set<UITouch>, withEvent event: UIEvent?) { }
override func touchesMoved(touches: Set<UITouch>, withEvent event: UIEvent?) { }
override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?) { }