天天看點

ios tableView那些事 (十)設定 tableview 的分割線

 [tableview   setseparatorcolor:[uicolor    bluecolor]];  //設定分割線為藍色

隐藏uitableviewcell的分隔線

[self.mytableview       setseparatorstyle:uitableviewcellseparatorstylenone]; 

 uitableviewcellseparatorstyle有如下幾種 

typedef ns_enum(nsinteger, uitableviewcellseparatorstyle) {

    uitableviewcellseparatorstylenone,

    uitableviewcellseparatorstylesingleline,

    uitableviewcellseparatorstylesinglelineetched  // this separator style is only supported for grouped style table views currently

};

繼續閱讀