日韩av黄I国产麻豆传媒I国产91av视频在线观看I日韩一区二区三区在线看I美女国产在线I麻豆视频国产在线观看I成人黄色短片

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 >

App开发

發(fā)布時(shí)間:2025/3/15 30 豆豆
生活随笔 收集整理的這篇文章主要介紹了 App开发 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

設(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é)

以上是生活随笔為你收集整理的App开发的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。