iphone - iOS App window is not getting initialised -


so, after spending last week designing , planning out app, request has come in change slightly. in order make change, have have part of navigation controller can change views (currently using subviews won't work correctly).

i have modified appdelegate.h , appdelegate.m have references new windows , views , black screen on launch.

after using debugger, noticed window pointer in appdelegate still pointing @ memory address 0, after should have been initialised window connected using interface builder.

clearly doing wrong, , have no idea go here. don't know information should providing. on safe side here appdelegate.h:

#import <uikit/uikit.h> #import "initialisationcontroller.h"   @interface appdelegate : nsobject <uiapplicationdelegate>  @property (strong, nonatomic) iboutlet uiwindow *window; @property (strong, nonatomic) iboutlet uinavigationcontroller *navigationcontroller; @property (strong, nonatomic) iboutlet initialisationcontroller *initialisationcontroller;  @end 

and didfinishlaunchingwithoptions method:

- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {     [self.window addsubview:navigationcontroller.view];     [self setinitialisationcontroller:[[initialisationcontroller alloc] initwithnibname:@"initialisationcontroller" bundle:nil]];      //self.window.rootviewcontroller = navigationcontroller;     [self.window makekeyandvisible];      //[self.navigationcontroller pushviewcontroller:initialisationcontroller animated:yes];     [self.navigationcontroller.view addsubview:[[self initialisationcontroller] view]];       return yes;   } 

does have slightest idea?

thanks!

- (bool)application:(uiapplication *)application didfinishlaunchingwithoptions:(nsdictionary *)launchoptions {      self.window = [[[uiwindow alloc] initwithframe:[[uiscreen mainscreen] bounds]] autorelease];     self.initialisationcontroller = [[initialisationcontroller alloc] initwithnibname:@"initialisationcontroller" bundle:nil]];     navigationcontroller = [[uinavigationcontroller alloc] initwithrootviewcontroller:self.initialisationcontroller];     [self.window addsubview:[navigationcontroller view]];     [self.window makekeyandvisible];     return yes; } 

i think helpful you.


Comments

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -