带动画的插入行:
NSIndexPath * indexPath =
[NSIndexPath indexPathForRow:self.memos.count - 1 inSection:0];
[self.tableView insertRowsAtIndexPaths:@[indexPath]
withRowAnimation:UITableViewRowAnimationAutomatic];
UITableViewCell
属性:
.backgroundImage
.selectedImage
设置表格 无边线 的代码:
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone ;
界面设置则在 第四个检查器下面的 TableView 下面的Separator 进行设置
清理cell的Label 的背景颜色:
cell.textLabel.backgroundColor = [ UIColor clearColor ] ;
更改cell 选中背景颜色的方法:
UIImage* image = [UIImage imageWithNamed:@" XXX.png "] ;
cell.selectedView = [ [ UIImageView alloc] initWithImage:image] ;
注意:
后期如果需要自定义cell用于程序中,则 只要将上面的cell 美化界面 放置在 自定义cell 的初始化方法中 .