[英]How can I push view controller with storyboard identifier using LGSideMenuController?
[英]How do I give an “identifier” to a view controller within my storyboard?
instantiateViewControllerWithIdentifier:
方法要求我傳遞的視圖控制器具有標識符。 我去了我的故事板並點擊了我的視圖控制器,但我看不到設置標識符的選項。 我在哪里找到這個選項?
正如圖像所示! 希望能幫助到你!
然后使用它你打電話:
[self.storyboard instantiateViewControllerWithIdentifier:@"YourViewControllerID"];
在身份檢查器中有一個字段故事板ID 。 您可以在此處輸入類名,然后在instantiateViewControllerWithIdentifier:
使用此標識符instantiateViewControllerWithIdentifier:
。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.