On the 1,cell button, click the Response cell Click event
In daily development, the button on the cell, click on the click event, but the cell's click event. I think it may be a gesture conflict, after all, the cell has a tap gesture, the button also has, and the button is also a child control of the cell. Lucky to get the instructions of the great God, he said, in fact the click of the button also exists only after the cell, so the way to go is the cell instead of the button. Here's the solution:
2, when the cell is selected by default, there will be a selected state, I have encountered the status of the selection does not disappear, the following is the solution:
3, refresh the specified cell
Sometimes just need to refresh the current cell, or the entire section of the cell, does not require refreshing the entire tableview
①, refresh the current cell
②, refresh the entire section
③, depending on the cell, or the subspace on the cell, gets the Indexpath
OK, that's all, the future will be in writing. (Lazy enough, can not code word, try to use pictures, illustrations, more intuitive and clear,??) O (∩_∩) o ha! )
iOS daily Development summary-cell Frequently asked questions