iphone - Getting black screen when loading navigation controller -


The code below is attempting to implement a method where my navigation controller has two different views. Launches on. The problem is that whenever I launch my application I keep a screen black.

  #import "SugarCRMReleaseOneAppDelegate.h" #import "SettingsViewController.h" #import "ModuleViewController.h" @Explementation SugarCRMReleaseOneAppDelegate @Synthesize window; @Synthesis Navigation Controller; #pragma mark - #pragma mark Application Lifecycle - (BOOL) Application: (UIApplication *) Application FinishLaunchingWithOptions: (NSDictionary *) launchOptions {// App Launch NSString * a2 = [[NSString alloc] init] after override for optimization Point; A2 = [[NSUserDefaults Standard User Default] ObjectForekey: @ "Saved User Name"]; NSString * b2 = [[NSString alloc] init]; B2 = [[NSUserDefaults Standard Standard Defaults] ObjectForreq: @ "saved password"]; [Window-making and knowledgeable]; If (A2 == zero and amp; B2 == zero) {Settings view controller * Visual dialogue 1 = [[settings viewer alloc] initWithNibName: @ "SettingsviewController" bundle: zero]; [Navigation controller initWithRootViewController: viewController1]; [Add windowSubviewview: [Navigation controller view]]; [ViewController1 release]; } Else {ModuleViewController * viewController2 = [[ModuleViewController alloc] initWithNibName: @ "ModuleViewController" bundle: zero]; [Navigation controller initWithRootViewController: viewController2]; [Add windowSubviewview: [Navigation controller view]]; [ViewController2 release]; } [UIApplication shared application] .idleTimerDisabled = YES; Yes come back }   

If you see the block controller window:

 < Code> [window-maker and knowledgeable];  

Comments

Popular posts from this blog

c# - sqlDecimal to decimal clr stored procedure Unable to cast object of type 'System.Data.SqlTypes.SqlDecimal' to type 'System.IConvertible' -

Calling GetGUIThreadInfo from Outlook VBA -

Obfuscating Python code? -