Use pushViewController within app Delegate

Posted by FMT on Stack Overflow See other posts from Stack Overflow or by FMT
Published on 2014-06-04T09:16:24Z Indexed on 2014/06/04 9:24 UTC
Read the original article Hit count: 139

Filed under:
|

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 :$

© Stack Overflow or respective owner

Related posts about ios

Related posts about uinavigationcontroller