func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { self.window = UIWindow(frame: UIScreen.mainScreen().bounds) NSUserDefaults.standardUserDefaults().objectForKey("FirstLanght") == nil ? enterGuide() : enterMain() return true } func enterGuide(){ var guideController = GuideViewController() self.window!.rootViewController = guideController self.window!.backgroundColor = UIColor.whiteColor() self.window!.makeKeyAndVisible() } func enterMain(){ self.window!.rootViewController = ViewController() self.window!.backgroundColor = UIColor.whiteColor() self.window!.makeKeyAndVisible() }
ios swift跳转Guide和主页
猜你喜欢
转载自iaiai.iteye.com/blog/2264795
今日推荐
周排行