iOS daily Development summary-cell Frequently asked questions

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.