How to trigger programmatically cancel button in UISearchBar, like if you have tapped cancel button?
I have a UISearchBar in the top of a UITableView and after a search, when someone select a row, I want to trigger programmatically cancel button in the UISearchBar?
EDIT: Without user interaction.