objective c - Can't restore appDelegate window outlet in IB -


I deleted my app by accidentally removing the window outlet and do not manage to resume it again.

There is a tab bar controller in my window based app.

I am using xCode 3.1.3. See link on the screenshot of IB with Ad Delegate Outlets.

Any sign is most appreciating,

My app DeLite code looks like this:

  #import & lt; UIKit / UIKit.h & gt; @ Interface LGS2010App Delegate: NSObject & lt; UIApplicationDelegate, UITabBarControllerDelegate & gt; {UIWindow * window; UITabBarController * Tabbar Controller; } @ Property (Nonomatic, Recton) UIWindow * Window; @protecti (nanatomic, raten) UITBBR controller * tabbar controller;  

More implementation:

  @implementation LGS2010AppDelegate @ synthesis window, tabbar controller; #pragma Icon - #pragma Icon Setup Methods - (zero) ApplicationDefinitional Launching: (UIApplication *) Application {// Tab Bar Add current view of controller as a subview of the window [Add Window windowview: tabBarController.view]; }  

iFloh

You need to add the UITabBarController * Tabbar controller; From to @interface section, and make it a nonatomic and maintain property. Then connect the outlet, and make sure that applicationDidFinishLaunchingWithOptions contains the [window addSubview: tabBarController]; .


Comments