oberbaum
oberbaum

Reputation: 2448

iphone sdk - select a cell in a tableview, with code

I would like to select a cell in a tableview, except with code before any user interaction.

Is this at all possible, a quick search through the sdk notes doesnt yield anything. Where should I look?

Regards

Upvotes: 0

Views: 681

Answers (1)

Vladimir
Vladimir

Reputation: 170839

UITableView class, "Managing Selections" section.

- (void)selectRowAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated scrollPosition:(UITableViewScrollPosition)scrollPosition

Upvotes: 4

Related Questions