swift-----启动显示别的xib 文件

在addDelegate.wift 文件里面修改

 

    func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {

        // Override point for customization after application launch.

        

        var loginCtl : LoginViewController!

        self.window = UIWindow(frame: UIScreen.mainScreen().bounds);

        self.window?.backgroundColor = UIColor.whiteColor();

        loginCtl = LoginViewController(nibName:"LoginViewController",bundle:NSBundle.mainBundle());

        self.window?.rootViewController = loginCtl;

        self.window?.makeKeyAndVisible();

        

        return true

    }

 

我这是启动了 LoginViewController.xib

posted @ 2015-05-19 16:56  dcj890828  阅读(364)  评论(0编辑  收藏  举报