I am using Xcode 7.1 and iOS 9.1 beta. I imported my working code from Xcode 6.2 and I am getting an error message that "Method does not override any method from its superclass"
Its not a latest swift syntax issue. I already rule out following conditions:
- syntax is updated for swift 2.0:
override func touchesEnded(touches: Set<UITouch>, withEvent event: UIEvent?)- On rewrite in Xcode, syntax is suggested by xcode itself.
- Most important, I don't see this issue if I create a new test project and try to override touchesBegan. Problem is only with the imported code.
- I am overriding this method in UIViewController subclass.
- Same issue is also reproducible in Xcode 7 beta 6
It looks to me that either its a beta bug with imported code or something wrong with my configuration. Any suggestion are welcome. Thanks for the Help.
Well, We moved our code from Xcode 6.2 to Xcode 7. In my project we had a SET class somewhere. So, After migration, I was not able to figure out why I was still getting overriding issue even I have right swift 2.0 syntax.
I got an clue from its color. swift Set has purple color and Mine custom Set has light blue color.
Anyway,I don't think, this is a common issue. But still I want to post my answer