[英]LaunchScreen.storyboard not opening Main.storyboard Navigation Controller
[英]how does LaunchScreen.storyboard redirect to Main.storyboard
我是iOS開發人員的新手,我知道這是一個非常簡單的問題,但我真的無法理解原因。
當我建立SingleViewApplication
,Xcode的自動生成LaunchScreen.storyboard
和Main.storyboard
,
但我找不到像[self.navigationController pushViewController:]
那樣的代碼,它可以選擇哪個視圖控制器進入堆棧作為頂級視圖的最后一個,
我只能找到ViewController.{h,m}
作為第一和看不到邏輯改變視圖從LaunchScreen.storyboard
到Main.storyboard
。
有人可以幫忙嗎? 謝謝..
Main.storyboard文件和LaunchScreen在項目屬性中定義。 您可以通過單擊xcode中的項目找到它,然后在下面的目標中找到這兩個名稱,您可以通過選擇標簽旁邊的下拉列表來選擇自己的名稱。
和其他重定向到LaunchScreen到Main.storyboard,您可以參考項目中的info.plist文件以及AppDelegate.h和AppDelegate.m
很可能iOS首先查找LaunchScreen.storyboard文件並顯示它一段時間,當它完成后,它會查找Main.storyboard。
正如Tejas在他的回答中所提到的那樣,這些名字在plist中是硬連線的,你可以改變它們。
我不認為LaunchScreen.storyboard
正在推動Main.storyboard
。 一切都在幕后管理,你不能改變這種行為。
您可以更改的是Main.storyboard
的初始View Controller
,以便在LaunchScreen.storyboard
消失且應用程序完全加載后立即實例化。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.