resignFirstResponder, the easy way!

If you have an UIControl in edit mode… but you have no idea which one is it… and you need to resignFirstResponder, there is an easy way to do this. No, you don’t need to hook to notifications. And you don’t need to find the firstResponder. This can be solved with just one call.

What you need to do is…

[cc lang=”objc”][_tableView endEditing:YES][/cc]

Note that you could have anything else rather than a _tableView.
Easy. Right?