![](/img/trans.png)
[英]What is the difference between using instantiateViewControllerWithIdentifier and performseguewithidentifier?
[英]What's the difference between instantiateInitialViewController and instantiateViewControllerWithIdentifier:?
如果我有一個故事板,其視圖控制器已被標記。 那么這兩個API有什么區別?
我想知道的是,返回的對象是否存在某些差異。 它們是完全相同還是其中之一將初始化更多東西?
使用InstantiateInitialViewController :初始化默認視圖(初始),這是您通常不會以編程方式執行的操作
在需要ViewController
並從storyboard
(storyboard Id(Identifier))附加視圖時,請使用InstantiateViewControllerWithIdentifier:
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.