I have created the search view controller to add the articles searched to the main view controller. I wanna make it to pop itself from navigation view controller by clicking the cancel button of search bar. I have tried like as below:
- (void) searchBarCancelButtonClicked:(UISearchBar*) searchBar {
[self.navigationController popViewControllerAnimated:NO];
}
我需要大家的帮助。