給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];

    

   }
相關文章
相關標籤/搜索