开发者

IOS 5 Using App Delegate To Load a Modal

i'm building an app for ios5 and i have the following problem:

In ios4 when i need to present a login modal view 开发者_运维知识库on app start i do the following: in the AppDelegate i load it in method didFinishLaunchingWithOptions using the referenced View Controller.

@interface MyAppDelegate : NSObject <UIApplicationDelegate, UITabBarControllerDelegate,LoginViewControllerDelegate> {
    UIWindow *window;
    UITabBarController *tabBarController; //THIS

    UIView *splashView;

    User *user;
}

But now, in ios5 using storyboards, i can't find how to do this because in my AppDelegate i don't have any reference to any view controller and i don't know how to get them.

Any idea about this?

Thanks


But why don't you just add a new Tabviewcontroller in MainStoryboard? Using storyboards is much easier than writing a code in AppDelegate.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜