Some insights in iPhone Development

Source: Internet
Author: User

During the development of iPhone applications, I encountered a problem when I tested my code over the past few days: Whenever I pop from one side to the root page, I want to restore to the previous status. But I encountered a problem. What should I do?

 

At the beginning, the-(void) viewdidload function was executed all the time since it entered the corresponding page, so it seldom pays attention to some processing when Pop arrived at this page. However, today we have encountered a problem that needs to be executed when Pop reaches this page, but here we also need to note that when Pop arrives at this page, it is executed-(void) the condition of viewdidload is that a memory warning is triggered and void viewdidunoad is executed. This is important. After some exploration, we found that some variable with default values can be used for control. Of course, this is what we all know. However, we usually do not use variables that are not initialized, and only the system gives a default value.

 

In fact, there is no purpose in writing this article. I want to share my feelings with you. I hope that you will not forget some of our common habits, we can still adopt some usable methods that we often avoid making troubles.

 

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.