我有一個表格視圖,與自定義單元格,我已設置單元格上有一個突出顯示顏色的文本時,你點擊它。自定義tableview和highlightTextColor
//具體
NSString *ligneTableau = [NSString stringWithFormat:@"%@", [[table objectAtIndex:indexPath.row] nome]];
cell.label.text = ligneTableau;
cell.label.font = [UIFont fontWithName:@"populaire" size:35];
cell.label.textColor = [UIColor colorWithRed:124.0f/255.0f green:153.0f/255.0f blue:106.0f/255.0f alpha:1.0f];
cell.fondo.image = [UIImage imageNamed: @"cell_ant.png"];
//highlighted Text
cell.label.highlightedTextColor = [UIColor colorWithRed:55.0f/255.0f green:70.0f/255.0f blue:48.0f/255.0f alpha:1.0f];
每一個東西做工精細,但回來到文本住宿突出表時電池。
我忘記了一些事情?
感謝您的答覆,但如果我把這個 - (無效)viewDidUnload 正常工作... – Acunamatata 2012-04-17 07:41:00
試在 - (void)viewDidDisappear:(BOOL)animated – mhunturk 2012-04-17 07:44:52
nope,bur認爲問題是另一個,這裏是我聲明並設置我的自定義單元格。 - (的UITableViewCell *)的tableView:(UITableView的*)的tableView的cellForRowAtIndexPath:(NSIndexPath *)indexPath { //豐多tabella TRASPARENTE tableView.backgroundColor = [的UIColor clearColor]; static NSString * CellIdentifier = @「Cell」; UpdatesTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];如果(cell == nil){ NSArray * topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@「UpdatesTableViewCell」owner:self options:nil]; – Acunamatata 2012-04-17 07:57:00