I have been searching and haven't been able to make it work.
TableviewcontrollerA
segues a TableviewcontrollerB
with searchbar as firstresponder
When user taps cancel, I want to go back to TableviewcontrollerA
I have tried quite a few things in the below method with no luck. What am I missing?
Thanks BTW - The segue is done on IB, not code
-(void) searchBarCancelButtonClicked:(UISearchBar *)searchBar{
}
-(void) searchBarCancelButtonClicked:(UISearchBar *)searchBar{
[self.searchDisplayController setActive:NO animated:YES];
self.navigationController popToViewController:UIViewControllerA animated:YES;
}
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.