tableView和cell一些知识

1.self.tableView.indexPathForSelectedRow.row    // 被选中的行号

2.// 当cell的selection为None时, 即使cell被选中了, 内部的子控件也不会进入高亮状态
  //    self.textLabel.highlightedTextColor = [UIColor RedColcor];


3.可以在这个方法中监听cell的选中和取消选中
 
- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
    [super setSelected:selected animated:animated];
}

posted @ 2016-06-24 10:19  蓝鹰ios  阅读(133)  评论(0)    收藏  举报