uitabbarcontroller - iphone initializing tab bar controller view programatically -


I want to programmatically initialize my tab bar controller, but I just have a blank screen Meets. I tried to copy, and the stuff seems comparable to line-by-line, but obviously something is wrong. Any suggestions?

Thank you ...

In the main M:

  #import & lt; UIKit / UIKit.h & gt; Int main (int argc, char * argv []) {NSAutoreleasePool * pool = [[NSAutorelease Pool alloc] init]; Int Rated = UIAP Planningman (AGRC, AGRV, Zero, @ "DubbbellWrapUp Delegate"); [Bridge release]; Return rate; }  

DubbleWrapAppDelegate.h:

@Interface DoubledWrapAppDelegate: NSObject & lt; UIApplicationDelegate, UITabBarControllerDelegate & gt; {UIWindow * window; UITabBarController * Tabbar Controller; } @ Property (Nonomatic, Retaining) IBOutlet UIWindow * Window; @protecti (nonomatic, reserved) IBOutlet UITabBarController * Tabbar Controller; @end

In DubbleWrapAppDelegate.m:

  @implementation DubbleWrapAppDelegate @ynthesize window; @injection tab tab controller; - init {if (self = [super init]) // // zero lower window = zero; TabBarController = Zero; } Healthy return; } - (zero) applicationDeffish: Launching: (UIApplication *) application {secureTVviewviewer * vc1 = [[SafalviewConverterAloc] INIT WITH STYLE: UTTABLEVYSTELEN PLAN]; [Vc1SetFIFITS: [Secure Itam Known Information]]; // Set the list of known secure identity: UINavigationController * nc1; NC 1 = [[UINavigationController alloc] initWithRootViewController: vc1]; [VC1 release]; Box XRayTableViewController * vc2 = [[BoxXRayTableViewController alloc] initWithStyle: UITableViewStylePlain]; UINavigationController * nc2; NC2 = [[[Organization Administrator] Allok] InitViewViewController: vc2]; [VC2 release]; AboutLibertyViewController * vc3 = [[AboutLibertyViewController alloc] init]; UINavigationController * nc3; NC3 = [[UINavigationController alloc] initWithRootViewController: vc3]; [VC3 release]; NSArray * Controller = [NSArray arrayWithObjects: nc1, nc2, nc3, zero]; TabBarController = [[UITabBarController alloc] init]; TabBarController.viewControllers = Controller; [Controller release]; // Add the current view of the tab bar controller as a subview of the window window = [[[UIWindow alloc] initWithFrame: [[UIScreen main screen] border]] Autorlage]; [Window setbackgram color: [UIColor redColor]]; [Add windowviewview: tabbar controller. View]; [Window-making and knowledgeable]; [NC 1 release]; [NC2 release]; [NC 3 release]; }  

The plist is set up so that no NIB file is referenced.

You must stop at window objects. You marked it as AutoHorve, so it has been released to the next app loop.

Do not call the auto-assignment on Windows :

  window = [[UIWindow alloc] initWithFrame: [[UIScreen main screen] border]] ;  

Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -