开发者

Setting edit mode of uitableview disables row selection

开发者 https://www.devze.com 2023-02-23 01:28 出处:网络
When I set the edit mode of my uitableview by using [listTableView setEditing:YES]; I am not able to select the table rows anymore. It does not take the control to didSelectRowAtIndexPath.

When I set the edit mode of my uitableview by using

[listTableView setEditing:YES];

I am not able to select the table rows anymore. It does not take the control to didSelectRowAtIndexPath.

When I comment the above line, it is ok.

A开发者_StackOverflow社区ny idea why? I need the editing and selection features.

Thanks.


listTableView.allowsSelectionDuringEditing = YES;

0

精彩评论

暂无评论...
验证码 换一张
取 消