作者热门文章
- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用这样的自定义单元格:
PropertyCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier forIndexPath:indexPath];
它被注册为:
[self.tableView registerNib:[UINib nibWithNibName:@"PropertyCell" bundle:nil] forCellReuseIdentifier:@"PropertyCell"];
类声明为:
@interface PropertyCell : UITableViewCell <UITextFieldDelegate>
它在 xib 中包含一个 UITextField,我需要在初始化时为其分配一个委托(delegate)。
问题在于:
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
在这种情况下永远不会被调用。
该出队机制使用哪种初始化程序?
最佳答案
您将要使用此问题中发布的 initWithCoder 或 awakeFromNib...
关于ios - 自定义 UITableViewCell 初始值设定项在 IOS 中出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21555256/
我想成为 Spark 纱客户(link)。是否需要安装hadoop?还是只安装 yarn 可以吗? (by this link) 最佳答案 No Spark不需要Hadoop即可运行。 Apache
我是一名优秀的程序员,十分优秀!