UITableViewCell のサブビュー ( viewz ) を選択したときに背景の変更を除外したい。
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
cell.selectionStyle = UITableViewCellSelectionStyleBlue;
UIView *viewz = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 30, 30)];
viewz.backgroundColor = [UIColor redColor];
[cell.contentView addSubview:viewz];
セルが選択されていません。すべて大丈夫です。
http://img32.imageshack.us/img32/1599/screenshot20121129at123.png
セルの色が青に変わりました。大丈夫です。しかし、ビューの背景色を青に変更したくありません。これどうやってするの?