"iOS Dev-61" after replacing the plist resource, the running program iOS emulator still shows what the last data looked like and how to fix it?

Source: Internet
Author: User

(1) Introduction of the situation

--We first import a plist file to do the project, simulate the running view effect.

--delete plist, replace a new plist,cmd+r simulation run, and discover whether the program interface shows the last data.


(2) Reason

This is because the first time the simulation runs, a "sandbox" has been generated and all the resources are stored in the sandbox (if the user's phone is equivalent to the data already downloaded to the user's phone). At this point, although we have replaced, the data in the sandbox is still the last data.


(3) Solve the idea: clear the last data left, and then reload the new data plist. (Recommended 2-step walk)

--Remove the app in the simulator first


--Perform clear data operations



"iOS Dev-61" after replacing the plist resource, the running program iOS emulator still shows what the last data looked like and how to fix it?

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.