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 ......