{"action":"opened","issue":{"url":"https://api.github.com/repos/mutualmobile/MMDrawerController/issues/456","repository_url":"https://api.github.com/repos/mutualmobile/MMDrawerController","labels_url":"https://api.github.com/repos/mutualmobile/MMDrawerController/issues/456/labels{/name}","comments_url":"https://api.github.com/repos/mutualmobile/MMDrawerController/issues/456/comments","events_url":"https://api.github.com/repos/mutualmobile/MMDrawerController/issues/456/events","html_url":"https://github.com/mutualmobile/MMDrawerController/issues/456","id":162100579,"number":456,"title":"State Restoration issue in iOS Application","user":{"login":"basavarajd","id":4426664,"avatar_url":"https://avatars.githubusercontent.com/u/4426664?v=3","gravatar_id":"","url":"https://api.github.com/users/basavarajd","html_url":"https://github.com/basavarajd","followers_url":"https://api.github.com/users/basavarajd/followers","following_url":"https://api.github.com/users/basavarajd/following{/other_user}","gists_url":"https://api.github.com/users/basavarajd/gists{/gist_id}","starred_url":"https://api.github.com/users/basavarajd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/basavarajd/subscriptions","organizations_url":"https://api.github.com/users/basavarajd/orgs","repos_url":"https://api.github.com/users/basavarajd/repos","events_url":"https://api.github.com/users/basavarajd/events{/privacy}","received_events_url":"https://api.github.com/users/basavarajd/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-06-24T08:34:02Z","updated_at":"2016-06-24T08:34:02Z","closed_at":null,"body":"I have integrated the MMDrawerController Library in an iOS application and now I have a requirement to Restore application state even though application is killed in background(Only when application is enter from foreground to background), it is working fine with normal navigation application but when I change Navigation using \"setCenterViewController\" option in my application, restoration is not working as expected and I have followed all instruction provided in this link: \"https://developer.apple.com/library/ios/featuredarticles/ViewControllerPGforiPhoneOS/PreservingandRestoringState.html\"\r\n\r\nand here is the code snippet:\r\n\r\nAppDelegate appDelegate = (AppDelegate)[[UIApplication sharedApplication] delegate]; appDelegate.homeController.navigationController.navigationBarHidden = YES; HomeViewController *homeVC = [[HomeViewController alloc] initWithNibName:@\"HomeViewController\" bundle:nil]; UINavigationController *_navg = [[UINavigationController alloc]initWithRootViewController:homeVC]; _navg.restorationIdentifier = @\"homeNavigationController\"; homeVC.title = [self.dataSource objectAtIndex:indexPath.row]; homeVC.restorationIdentifier = @\"HomeViewController\"; [appDelegate.drawerController setCenterViewController:_navg withCloseAnimation:YES completion:nil]; self.currentViewController = _navg; self.currentViewController.restorationIdentifier = @\"homeNavigationController\";"}}
{"actor":{"display_login":"basavarajd"}}