iphone - Applications are expected to have a root view controller at the end of application launch error -


i have problem,

i using following code application work fine.

  support *panoview=[[support alloc] initwithframe:cgrectmake(0, 0, 768, 1024)];     self.view=panoview; 

note: panoview uiview class

instead of using following code:

 support *panoview=[[support alloc] initwithframe:cgrectmake(0, 0, 768, 1024)];     self.background_image_view=panoview; 

this produce following error : applications expected have root view controller @ end of application launch app not load.

i need display panoview inside new background_image_view. 1 me.

instead of [self.window addsubview:] use [self.window setrootviewcontroller:]

in application:didfinishlaunchingwithoptions:


Comments