用xib定义UITableViewCell

在xib中重新定义了UITableViewCell后,要在继承了UITableViewCell的.m文件中,实现方法:

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {

    [super setSelected:selected animated:animated];

 

    // Configure the view for the selected state

}

 

不然表格cell中的按钮控件不能点击

posted on 2015-10-20 20:28  秋风渡河上  阅读(97)  评论(0编辑  收藏  举报