I am using iOS 6 Preservation and Restoration (without Storyboard), it is working fine with navigation controller , but if i manually add Tabbar controller on main window , i am not getting selected tab.
eg.
ListViewController *list = [[ListViewController alloc] initWithNibName:@"ListViewController" bundle:nil];
SettingViewController *setting = [[SettingViewController alloc] initWithNibName:@"SettingViewController" bundle:nil];
UINavigationController *navigation = [[UINavigationController alloc] initWithRootViewController:list];
navigation.restorationIdentifier = @"NavigationControllerID";
self.tabbar = [[UITabBarController alloc] init];
self.tabbar.restorationIdentifier = @"TabbarControllerID";
self.tabbar.viewControllers = @[navigation,setting];
[[_tabbar.tabBar.items objectAtIndex:0] setTitle:NSLocalizedString(@"List", @"comment")];
[[_tabbar.tabBar.items objectAtIndex:1] setTitle:NSLocalizedString(@"Setting", @"comment")];
self.window.rootViewController = self.tabbar;
[self.window makeKeyAndVisible];
in t his case i am getting first tab selected every time.i have implatementd
+ (UIViewController *)viewControllerWithRestorationIdentifierPath:(NSArray *)identifierComponents coder:(NSCoder *)coder
for setting view controller.