Random iOS development

Source: Internet
Author: User

I 've been busy with IOS projects recently. It's hard to take time out to summarize some of my experiences on iOS development. I'll just write down some things when I think of anything.

 

Even if the arc mechanism is used, the dealloc method must be called in some cases, but [Super dealloc] cannot be used, release some timer, CF object, malloc, and free in this method.

 

Perform table sharding or module writing on the data layer. The more data is accumulated, it is very dangerous for future maintenance.

 

Before completing a module, think about the page composition, the most reasonable layout and the delegate.

 

The design of the server-side table is different from the design of the client-side table. If the client is redundant, it should be redundant. How can we make it easier? on the server side, we should generate data for the client at the timing or update of the server.

 

After instantiating a uiviewcontroller, do not try to assign values to the controls in it. This is useless because its view has not yet been generated, the correct method is to assign values to private variables or attributes during initialization. There is no way to call loadview once.

 

Let's write something next time you think of it. Go to bed ......

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.