{"action":"created","issue":{"url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/563","repository_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController","labels_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/563/labels{/name}","comments_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/563/comments","events_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/563/events","html_url":"https://github.com/John-Lluch/SWRevealViewController/issues/563","id":143109380,"number":563,"title":"Segue to proper tab of tabbar (front view) from rear view.","user":{"login":"iosdev27","id":16150517,"avatar_url":"https://avatars.githubusercontent.com/u/16150517?v=3","gravatar_id":"","url":"https://api.github.com/users/iosdev27","html_url":"https://github.com/iosdev27","followers_url":"https://api.github.com/users/iosdev27/followers","following_url":"https://api.github.com/users/iosdev27/following{/other_user}","gists_url":"https://api.github.com/users/iosdev27/gists{/gist_id}","starred_url":"https://api.github.com/users/iosdev27/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iosdev27/subscriptions","organizations_url":"https://api.github.com/users/iosdev27/orgs","repos_url":"https://api.github.com/users/iosdev27/repos","events_url":"https://api.github.com/users/iosdev27/events{/privacy}","received_events_url":"https://api.github.com/users/iosdev27/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-23T23:57:11Z","updated_at":"2016-03-24T11:22:50Z","closed_at":null,"body":"I have the following storyboard setup (see attached screenshot).\r\n![screen shot 2016-03-23 at 4 44 46 pm](https://cloud.githubusercontent.com/assets/16150517/14004352/aff70e24-f116-11e5-8457-ee9108e2f9a5.png)\r\n\r\nIt's a fairly simple setup, where I have a tabbarcontroller as the frontviewcontroller with two tabs. I want to be able to segue to the proper tab from the rear view (which is the menu table view).\r\n\r\nHere is what I'm currently doing:\r\n1. In the rear view's uitableview\r\n- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {\r\n    [tableView reloadData];\r\n\r\n    if (indexPath.row == 1 || indexPath.row == 2) {\r\n        [self performSegueWithIdentifier:@\"toTabBarSegue\" sender:indexPath];\r\n    }\r\n}\r\n2. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {\r\n    if ([[segue identifier] isEqualToString:@\"toTabBarSegue\"]) {\r\n        if ([sender isKindOfClass:[NSIndexPath class]]) {\r\n            NSIndexPath *indxPath = (NSIndexPath *)sender;\r\n            TabBarViewController *tBVC = segue.destinationViewController;\r\n            tBVC.selectedIndex = indxPath.row;\r\n        }\r\n    }\r\n}\r\nProblem: This segues to the proper tab but the menu gesture stops working. Also the the state of the tab is reloaded to initial settings. So my question is, what is the best way to load a particular tab with previous state from rear view (menu) uitableview? \r\n\r\nAny help is much appreciated!\r\n"},"comment":{"url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/comments/200795723","html_url":"https://github.com/John-Lluch/SWRevealViewController/issues/563#issuecomment-200795723","issue_url":"https://api.github.com/repos/John-Lluch/SWRevealViewController/issues/563","id":200795723,"user":{"login":"iDevelopper","id":1782450,"avatar_url":"https://avatars.githubusercontent.com/u/1782450?v=3","gravatar_id":"","url":"https://api.github.com/users/iDevelopper","html_url":"https://github.com/iDevelopper","followers_url":"https://api.github.com/users/iDevelopper/followers","following_url":"https://api.github.com/users/iDevelopper/following{/other_user}","gists_url":"https://api.github.com/users/iDevelopper/gists{/gist_id}","starred_url":"https://api.github.com/users/iDevelopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iDevelopper/subscriptions","organizations_url":"https://api.github.com/users/iDevelopper/orgs","repos_url":"https://api.github.com/users/iDevelopper/repos","events_url":"https://api.github.com/users/iDevelopper/events{/privacy}","received_events_url":"https://api.github.com/users/iDevelopper/received_events","type":"User","site_admin":false},"created_at":"2016-03-24T11:22:50Z","updated_at":"2016-03-24T11:22:50Z","body":"Hello,\r\n\r\nIs it what you want?\r\n\r\n[SWTabBar.zip](https://github.com/John-Lluch/SWRevealViewController/files/187705/SWTabBar.zip)\r\n"}}