Closed mcodo closed 11 years ago
FINALLY GOT IT WORKING !!! :)
I needed these three lines at the end of the searchResult:selectedAtIndexPath:
method
self.searchController.searchDisplayController.active = NO;
self.revealController.contentViewController = navController;
[self.revealController toggleSidebar:NO duration:kGHRevealSidebarDefaultAnimationDuration];
Hi. I have tried many ways of doing this, but when i get a search result from JSON and then clicking one of the rows, i get the right view in the view controller, but the sidebar menu does not hide. I then have to click cancel to get to the viewcontroller. Here is my code: