hi i have encountered an error while ios swite programming.
override func touchesBegan(touches: NSSet, withEvent event: UIEvent)
{
self.view.endEditing(true)

}


this piece of code it giving me following error. "method doesnot override any method from its superclass."

Please can anyone help me