我需要以编程方式选择一个UITableViewCell,我已经试过这样:以编程方式'触摸'UITableViewCell?
NSIndexPath *selectedCellIndexPath = [NSIndexPath indexPathForRow:0 inSection:0];
[table selectRowAtIndexPath:selectedCellIndexPath animated:YES scrollPosition:UITableViewScrollPositionNone];
然而,仅在视觉上选择该小区并没有挑上所选取的didSelectRowAtIndexPath
除非你真正挖掘细胞。
任何想法,有没有人遇到过这个问题,或有想法来解决这个问题或采用不同的方法?
谢谢。
的可能重复的[选择的tableview行编程(http://stackoverflow.com/questions/2035061/select-tableview-row-programmatically) – 2012-02-23 20:55:25