私はテーブルビューを持っています。カスタムセルでは、タップしたときにテキスト上にハイライトされた色が設定されています。カスタムテーブルビューとハイライトされたテキストカラー
//細胞特異的
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
試してみます(void)viewDidDisappear:(BOOL)animated – mhunturk
これは問題が別のものだと思っています。ここで宣言してカスタムセルを設定しました。 - (のUITableViewCell *)のtableView:(のUITableView *)のtableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {//フォンドtabella trasparente tableView.backgroundColor = [UIColor clearColor]。 静的NSString * CellIdentifier = @ "Cell"; UpdatesTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if(cell == nil){ NSArray * topLevelObjects = [[NSBundle mainBundle] loadNibNamed:@ "UpdatesTableViewCell"オーナー:セルフ・オプション:なし]; – Acunamatata