iOS----------对单元格取余

    if (indexPath.row % 2 == 0) {

                cell.backgroundColor = [UIColor magentaColor];

    }else{

        

        cell.backgroundColor = [UIColor whiteColor];

 

    }

 

posted @ 2017-11-02 17:06  iOS张文权  阅读(675)  评论(0编辑  收藏  举报