[英]Presenting UIViewController from programmed button issues
您似乎為故事板輸入了錯誤的名稱。 將名稱替換為您的實際storyboard
名稱:
let vc = UIStoryboard(name:"Main", bundle: nil).instantiateViewController(withIdentifier:"AddVC")
實際上,對於情節提要名稱,您已經給出了情節提要ID。 嘗試給予
let VC = UIStoryboard(name:<storyboard name>, bundle: nil).instantiateViewController(withIdentifier:"AddVC")
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.