[英]Can't find NewViewController subclass in Storyboard view
我想將TableViewController
從UIViewController
子類更改為新的UIViewController
(PlayersViewController),所以我添加了兩個文件(.h,.m),然后返回到Identity Inspector / Custom類。
PlayersViewController
在“自定義類”的下拉菜單中找到PlayersViewController
,但找不到它,因此我在其中鍵入內容並單擊“ Return”,但這也不起作用。
難道我做錯了什么?
您的新類應繼承自UITableViewController,而不是UIViewController。 在定制類字段中,只能選擇基類的子類。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.