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 Game Development Cookbook: Simple Solutions for Game Development Problems. epub
Bluetooth Low Energy in iOS Swift Your Guide to Programming the Internet of Things 英文epub 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
Bluetooth Low Energy in iOS Swift Your Guide to Programming the Internet of Things 英文azw3 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传者或csdn删除
iOS 10 in Swift 3 非常好的ios书! 非常好的ios书! 非常好的ios书! 非常好的ios书! 非常好的ios书! 非常好的ios书!
iOS 应用跳转路由,通过URL直接跳转到应用的某一控制器
apple IOS swift语言中文入门书籍
零基础iOS和Swift开发全套视频,从零基础入门到精通,学完月入过万不是梦!!
D2PDatePicker - 优雅和易于使用的iOS Swift日期选择器
iOS Swift Game Development Cookbook, 3rd Edition.epub
iOS 图片任意比例裁剪,Swift版。可以在图片选取后,调用裁剪管理类的裁剪方法,完成后,会回调裁剪后的图片
iOS Swift 大转盘 抽奖
ios swift 转场动画 水波纹动画 , 立方体动画 ,翻页动画 。
iOS开发, Swift开发进阶,100Tips ,Swift函数式编程,
iOS Swift记忆益智游戏Memory Game完整源码。1、实现网格切换4x4 和 6x6,设置网格等宽等高。2、支持重置。3、游戏计时。4、点击翻转。
Swift 4 is an incremental release of Swift: a tock in Apple’s usual tick-tock release cycle, where the tick is a major release and the tock is a follow-up release with bug fixes and some additions ...
ios swift 版计算器素材及源码。
iOS Swift 下拉菜单列表
很简单的一个ios swift 开发例子,自动布局,自动大小尺寸。用来做最开始的学习很合适。
iOS Swift Programming Cookbook
使用Swift和SQLite创建iOS数据库应用 Build iOS Database Apps with Swift and SQLite What You'll Learn: How to create database and database applications using iOS and Swift How to insert, select, edit, ...