App开发
設置App圖標
在Assets.xcassets的AppIcon中添加圖片。
?
設置App名稱
工程 -》 Info -》 添加Key:“Bundle Display Name“ 和 Value:App名稱
?
設置App啟動圖片
在Assets.xcassets的LaunchImage中添加圖片。
工程 -》 General -》 App Icons and Launch Images -》?Launch Images Source設置為LaunchImage
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -》 Launch Screen File內容刪除為空
將LaunchScreen.storyboard中的Use as Launch Screen復選框取消勾選,如下圖所示。
若第一次運行不能正確顯示,可以把App刪掉重裝試一下。
?
設置啟動App之后的首界面
在AppDelegate.swift中設置viewController:
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {self.window = UIWindow(frame: UIScreen.mainScreen().bounds)self.window?.makeKeyAndVisible()let root = RootViewController()self.window?.rootViewController = root// Override point for customization after application launch.return true}此時會出現"loaded 'XXXnib' but the view outlet was not set"的錯誤,需要關聯xib。
關聯xib:
在xib的File's Owner中設置Custom Class。
control鍵 +?File's Owner,將彈出的提示框中Outlets的view關聯到xib的View上。
?
文本框輸入為密碼形式
在xib中將文本框屬性的Secure Text Entry復選框選中。
?
轉載于:https://www.cnblogs.com/argenbarbie/p/5813339.html
總結
- 上一篇: (计算机组成原理)第三章存储系统-第六节
- 下一篇: SPI