ios - Terminating app due to uncaught exception reason: 'Application windows are expected to have a root view controller at the end of application launch' -


feedcontentvc *feedvc= [[feedcontentvc alloc] initwithnibname:@"feedcontentvc" bundle:nil]; navigationcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:feedvc];  navigationcontroller.navigationbar.barstyle = uibarstyleblack;  [window setrootviewcontroller:navigationcontroller]; 

although things looks correct in doing, please confirm following:

  1. window strong property in appdelegate. should [self.window setrootviewcontroller:navigationcontroller].
  2. put breakpoint , check feedvc not nil.
  3. you have statement in code [self.window makekeyandvisible];.

Comments

Popular posts from this blog

xml - Extract substrings with XSLT -

math - "ELO Rating" and how does "TSR Rating" work? -

How can do a tuple comparison in coffeescript similar to that in python? -