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”作为单元标识符 –