我用下面的代码以编程方式选择的tableview细胞当以编程方式进行选择时,TableView是否生成didSelectRowAtIndexPath事件?
- (void) selectTableCell{
NSIndexPath *ip = [NSIndexPath indexPathForRow:0 inSection:0];
[tableView selectRowAtIndexPath:ip animated:YES scrollPosition:UITableViewScrollPositionBottom];
NSIndexPath *ip1 = [NSIndexPath indexPathForRow:1 inSection:0];
[tableView selectRowAtIndexPath:ip1 animated:YES scrollPosition:UITableViewScrollPositionBottom];}
出于测试目的,我想做到这一点。我如何生成didselect事件?
感谢, Lalith
nope ..我的意思是它只是运行该方法..事件不会被解雇 – Lalith
如果你正确med200建议在你的selectRowAtIndexPath调用下面它应该调用didSelectRowAtIndexPath委托方法 – arniotaki