,我嘗試設置當前選中的單元格的背景。我知道在Three20樣式表的概念,但它只是提供:如何在three20的TTTableViewController中獲取用戶定義的背景顏色具有TTTableViewController實例的TTTableViewController
- (UITableViewCellSelectionStyle)tableSelectionStyle {
return UITableViewCellSelectionStyleGray;
}
與標準選項UITableViewCellSelectionStyleNone,UITableViewCellSelectionStyleBlue,UITableViewCellSelectionStyleGray。
其次,我知道,UITableView實現只需要一個子類UITableViewCell。人們會設置電池類的selectedBackgroundView:
UIView *myBackView = [[UIView alloc] initWithFrame:self.frame];
myBackView.backgroundColor = [UIColor colorWithRed:1 green:1 blue:0.75 alpha:1];
self.selectedBackgroundView = myBackView;
[myBackView release];
如何設置一個選擇的電池在three20的TTTableViewController實例的背景顏色?