iPhone SDK: selectRowAtIndexPath with delegate methods
Posted
by norskben
on Stack Overflow
See other posts from Stack Overflow
or by norskben
Published on 2010-04-12T14:55:44Z
Indexed on
2010/04/12
15:13 UTC
Read the original article
Hit count: 1471
Hi SO
I am using selectRowAtIndexPath to select a tableview in the same ViewController class, but this does not run the delegate methods, eg: tableView:didSelectRowAtIndexPath
I would like these delegate methods to also be called. Is there another API call I can be using?
Thanks
From the apple docs:
selectRowAtIndexPath:animated:scrollPosition:
Selects a row in the receiver identified by index path, optionally scrolling the row to a location in the receiver.
- (void)selectRowAtIndexPath:(NSIndexPath *)indexPath animated:(BOOL)animated scrollPosition:(UITableViewScrollPosition)scrollPosition
Calling this method does not cause the delegate to receive a tableView:willSelectRowAtIndexPath: or tableView:didSelectRowAtIndexPath: message, nor will it send UITableViewSelectionDidChangeNotification notifications to observers.
© Stack Overflow or respective owner