1
我向故事板添加了一個表視圖控制器。然後我將桌面視圖控制器的類設置爲我的類SubscriptionsTableViewController: UITableViewController
帶有類別的故事板中的表視圖控制器
現在我想用我製作的單元格填充它。
override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
let cell = self.dequeueReusableCellWithIdentifier("subscriptionCell") as! SubscriptionsTableViewCell
return cell
這給了我型SubscriptionsTableViewController has no member dequeueReusableCellWithIdentifier
的價值如何訪問的dequeueReusableCellWithIdentifier在TableViewController類?我應該不能使用self.dequeueReusableCellWithIdentifier,因爲我已經在Storyboard中設置了類。
隨意問,如果有什麼不清楚的話 –
也要在故事板中添加「subscriptionCell」作爲單元標識符 –