iOS uitableview--How to refresh the cell of the parent page

Source: Internet
Author: User

Problem: Comment Number synchronization

In social-related projects often have such a page, the main list of the cell has the number of likes, comments, the top of the details page is the same cell, the bottom of the list of comments, comments increase or decrease, the details page of the number of comments changed, return to the main list, the main list of the corresponding cell comment number has not changed. How to synchronize it.


Solution: When the cell of the Details page refreshes, the notification is sent, the master list listens to the notification, and the callback method of the notification is executed only TableView reloaddata.

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.