iOS----------对单元格取余,ios----------
投稿于 被查看 7098 次 评论:31
iOS----------对单元格取余,ios----------
if (indexPath.row % 2 == 0) {
cell.backgroundColor = [UIColor magentaColor];
}else{
cell.backgroundColor = [UIColor whiteColor];
}
相关文章
- 暂无相关文章
if (indexPath.row % 2 == 0) {
cell.backgroundColor = [UIColor magentaColor];
}else{
cell.backgroundColor = [UIColor whiteColor];
}
用户评论