Setting a UITableViewCell accessory type on some cells, but not all

Posted by Sheehan Alam on Stack Overflow See other posts from Stack Overflow or by Sheehan Alam
Published on 2010-03-29T22:27:15Z Indexed on 2010/03/29 22:33 UTC
Read the original article Hit count: 650

I have 8 cells that are being built in my UITableViewController. I would like to know how I can show a disclosure indicator on the 4th and 8th cells. Right now I am building it in

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

though I am fully aware it is going to add a disclosure indicator to every cell

cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk