Optimize APP performance

1. It is nothing more than good-looking and easy-to-use. First of all, good-looking should be viewed from the UI design of the entire APP. The layout should be good and follow one principle: unity. For example, a switch button, you can't have this style of this interface, and this style of that interface. To be easy to use, it is necessary to analyze the performance, do not block the main thread, and run smoothly.

2. If there is a tableview, optimizing the tableview is the key, and the tableview can be optimized from the following points (1, the reuse of the cell, 2, the cache of the picture, 3, the cell avoids using transparent view, 4, the cell control should be as unified as possible, 5, cache line height, don't request delegate).

3. Then see if there will be a memory leak. Check through the tools of memory and instrument to see whether the memory of the return interface has decreased. If you do not go to dealloc, it means that the memory has not been released, and the notification should be released.

4. Do not use UIwebView when nesting web pages, which will increase the memory a lot, use WKWebview;

5. Don't use imageWIthNamed when you want to put a large image, use the search path form

[NSBundle mainBundle]

6. Use lazy loading skillfully in the project.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=326857739&siteId=291194637