UITableView Selection & Deselection
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
精彩评论