开发者

UITableView Selection & Deselection

开发者 https://www.devze.com 2023-03-27 04:25 出处:网络
I am having two tableviews if the 1st table row gets selected then automatically deselect the开发者_Python百科 row in 2nd table if it is previously selected. Kindly anyone help me in this. Thanx in ad

I am having two tableviews if the 1st table row gets selected then automatically deselect the开发者_Python百科 row in 2nd table if it is previously selected. Kindly anyone help me in this. Thanx in advance.


If you select a row in your second table you have to store the selected index in a variable of your view controller. Within

didSelectRowAtIndexPath

of your first table you send

deselectRowAtIndexPath

message to your second table. Storing the selected item in a variable may be unnecessary if you manage to receive the selected index in your second table otherwise

0

精彩评论

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

关注公众号