给Cell间隔颜色

  

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

    

       cell.backgroundColor = [UIColor colorWithRed:.7 green:.7 blue:.7 alpha:1];

    

        }

     else{

    

     cell.backgroundColor = [UIColor colorWithRed:.9 green:.9 blue:.9 alpha:1];

    

   }
原文地址:https://www.cnblogs.com/mohe/p/3792689.html