views:

316

answers:

2

i use IB and dis select Show selection on touch but it still show blue highlight on cell that selected

+3  A: 

You should do it in the method

    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{

            cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
            if (cell == nil) {
                cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier2];
                [cell setSelectionStyle:UITableViewCellSelectionStyleNone];
            }
    }

Hope this helps.

Thanks, Madhup

Madhup
A: 

Seems to work in the METHOD... but not in IB. Why?

Susanna
I am wondering the same thing. The IB property seems to be ignored.
fnCzar