2017-02-17 94 views

回答

1

在你GetCell方法,只是做:

 public override UITableViewCell GetCell (UITableView tableView, NSIndexPath indexPath) 
      { 
       //Do cell stuff here 
      MyTestCell myCell = tableView.DequeueReusableCell("MyTestCell") as MyTestCell; 
       ....... 
       ......... 
       myCell.BackgroundColor = UIColor.Blue; 
      } 

這樣一來,所有的UITableView細胞將有你將其設置爲顏色!

+0

謝謝answer.i嘗試過,但沒有奏效。 –

相關問題