tableView的一些属性设置

//滚动条不显示

self.tableview.showsVerticalScrollIndicator = NO;


//tableview添加阴影

_tableview.layer.shadowOffset = CGSizeMake(0, 0);

_tableview.layer.shadowColor = [UIColor colorWithHexString:@"#7B7B7B"].CGColor;

_tableview.layer.shadowOpacity = 0.4;

_tableview.separatorColor = [UIColor colorWithWhite:0.3 alpha:0.2];

_tableview.clipsToBounds = NO;


// 选中后不让cell保持选中状态

-(void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {

// 选中后不让cell保持选中状态

[tableView deselectRowAtIndexPath:indexPath animated:YES];

}

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容