Use pushViewController within app Delegate
- by FMT
Hi there i want to use this code within the app delegate
ChatController *chatController = [[AppDelegate appDelegate] instantiateViewControllerWithIdentifier:@"GroupController"];
chatController.targetUserid = userid;
[self.navigationController pushViewController:groupChatController animated:YES];
how can i push viewcontroller from appdelegate
i mean make the above code work
cuz self.navigationcontroller doesnt work :$