这个代码在XCode 6没有错误,但在XCode 7(Swift 2)发生此错误:
@H_502_16@Method does not override any method from its superclass
override func touchesBegan(touches: Set<NSObject>,withEvent event: UIEvent) { /* Called when a touch begins */ }
Method ‘touchesBegan(:withEvent:)’ with Objective-C selector ‘touchesBegan:withEvent:’ conflicts with method ‘touchesBegan(:withEvent:)’ from superclass ‘UIResponder’ with the same Objective-C selector