this is my login button action how to put thid in appdelegate and if it place appdelegate how it access in login button
UITabBarController *tabBarController = [[UITabBarController alloc] init ];
UINavigationController *statusNavigationController = [[UINavigationController alloc] init];
StatusViewController *statusViewController = [[StatusViewController alloc] initWithNibName:@"StatusViewController" bundle:nil];
statusViewController.title = @"Status";
statusViewController.tabBarItem.image = [UIImage imageNamed:@"status.PNG"];
statusViewController.searchText=@"";
[statusNavigationController pushViewController:statusViewController animated:YES];
UINavigationController *messageNavigationController = [[UINavigationController alloc] init];
MessageViewController *messageViewController = [[MessageViewController alloc] initWithNibName:@"MessageViewController" bundle:nil];
messageViewController.title = @"Messages";
messageViewController.tabBarItem.image = [UIImage imageNamed:@"message.PNG"];
messageViewController.searchText=@"";
[messageNavigationController pushViewController:messageViewController animated:YES]
[tabBarController addChildViewController:statusNavigationController];
[tabBarController addChildViewController:messageNavigationController
[self.navigationController pushViewController:tabBarController animated:YES];