TableView Refresh of iOS development and usage of property properties

Source: Internet
Author: User

1.tableView Refresh

1> The overall steps for data refresh

* Modify Model data

* Refresh the table (Refresh interface)

2> How to refresh the table (Refresh the interface)

* Global Refresh (each row will be refreshed again)

-(void) reloaddata;

* Local Refresh (use premise: Before and after the refresh, the number of model data is unchanged)

-(void) Reloadrows: (Nsarray *) indexpaths withrowanimation: (uitableviewrowanimation) animation;

* Local deletion (use premise: number of model data reduction = = Indexpaths length)

-(void) Deleterowsatindexpaths: (Nsarray *) indexpaths withrowanimation: (uitableviewrowanimation) animation;

Use of the [email protected] Property

* Weak (assign): Proxy \ui control

* Strong (Retain): Other objects (except proxy \ui control \ String objects)

* Copy: String

* Assign: Non-object type (base data type int\float\bool\ enum \ struct)

TableView Refresh of iOS development and usage of property properties

Related Article

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.