App开发
設(shè)置App圖標(biāo)
在Assets.xcassets的AppIcon中添加圖片。
?
設(shè)置App名稱
工程 -》 Info -》 添加Key:“Bundle Display Name“ 和 Value:App名稱
?
設(shè)置App啟動(dòng)圖片
在Assets.xcassets的LaunchImage中添加圖片。
工程 -》 General -》 App Icons and Launch Images -》?Launch Images Source設(shè)置為LaunchImage
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? -》 Launch Screen File內(nèi)容刪除為空
將LaunchScreen.storyboard中的Use as Launch Screen復(fù)選框取消勾選,如下圖所示。
若第一次運(yùn)行不能正確顯示,可以把App刪掉重裝試一下。
?
設(shè)置啟動(dòng)App之后的首界面
在AppDelegate.swift中設(shè)置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}此時(shí)會(huì)出現(xiàn)"loaded 'XXXnib' but the view outlet was not set"的錯(cuò)誤,需要關(guān)聯(lián)xib。
關(guān)聯(lián)xib:
在xib的File's Owner中設(shè)置Custom Class。
control鍵 +?File's Owner,將彈出的提示框中Outlets的view關(guān)聯(lián)到xib的View上。
?
文本框輸入為密碼形式
在xib中將文本框?qū)傩缘腟ecure Text Entry復(fù)選框選中。
?
轉(zhuǎn)載于:https://www.cnblogs.com/argenbarbie/p/5813339.html
總結(jié)
- 上一篇: (计算机组成原理)第三章存储系统-第六节
- 下一篇: SPI