[英]Can't set custom class for cell in table view controller
I'm really going crazy: I can't simply set my custom class for a UITableViewCell and I really don't know why. 我真的很疯狂: 我不能简单地为UITableViewCell设置自定义类 ,我真的不知道为什么。
In my Storyboard I have a table view controller set to use ManageListsTVC.swift . 在我的Storyboard中,我有一个表视图控制器设置为使用ManageListsTVC.swift 。
I want use a custom cell with dynamic prototypes so I create a custom class ListTVCell : 我想使用带有动态原型的自定义单元格 ,因此我创建了一个自定义类ListTVCell :
import UIKit
class ListTVCell: UITableViewCell
{
override func awakeFromNib()
{
super.awakeFromNib()
// Initialization code
}
override func setSelected(selected: Bool, animated: Bool)
{
super.setSelected(selected, animated: animated)
// Configure the view for the selected state
}
}
So, clean, build, go in IB, select my table view controller, select the cell and... 所以,清理,构建,进入IB,选择我的表视图控制器,选择单元格和...
I can't see my custom class! 我看不到我的自定义课程! Why?
为什么? Really, I waste so much time already for this stupid problem and I don't know what's wrong.
真的,我已经为这个愚蠢的问题浪费了这么多时间,我不知道出了什么问题。
I'm using Xcode 6.3.1. 我正在使用Xcode 6.3.1。
--> incredibly after a complete reboot of my Mac now everything works and I can set my custom class. - > 完全重启我的Mac之后,现在一切正常,我可以设置我的自定义类。
Really strange but I decide to reply to my post, maybe can be helpful for someone else. 真的很奇怪,但我决定回复我的帖子,也许对别人有帮助。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.