關於tableview 的一些屬性設置

cell.accessoryType=UITableViewCellAccessoryDisclosureIndicator;這句的含義是在該行後面加一個大於號


[cell.contentView.layersetBorderColor:[UIColorblackColor].CGColor]; //邊框顏色

 [cell.contentView.layersetBorderWidth:1.0f];//邊框線條寬度

cell.contentView.layer.cornerRadius =3.0; //邊框圓角幅度


[cell setSelectionStyle:UITableViewCellEditingStyleNone]; //cell 點擊不觸發 didSelectRowAtIndexPath 事件



發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章