Search code examples
iphoneuitableviewtouchesbegan

touchesBegan method not called in UITableViewController class in iPhone


How can I use touchesBegan: withEvent: method in UITableViewController class?

UITableViewController is a subclass of UIViewController class. So why the method does not works in UITableViewController?


Solution

  • touchesBegan is a also UIView method besides being a UIViewController method.

    to override it you need to subclass UIView or UITableView and not the controllers.