http://www.raywenderlich.com/31166/25-ios-app-performance-tips-tricks
左岸網友翻譯,有些地方翻得怪怪的。能看原文還是看原文吧
http://blog.jobbole.com/37984/
Beginner
These are tips that you’ll always want to implement in any app you develop.
- Use ARC to Manage Memory
- Use a reuseIdentifier Where Appropriate
- Set Views as Opaque When Possible
- Avoid Fat XIBs
- Don’t Block the Main Thread
- Size Images to Image Views
- Choose the Correct Collection
- Enable GZIP Compression
Intermediate
These are tips you should use when you run into slightly more complicated issues.
- Reuse and Lazy Load Views
- Cache, Cache, Cache
- Consider Drawing
- Handle Memory Warnings
- Reuse Expensive Objects
- Use Sprite Sheets 做遊戲的話一定要知道
- Avoid Re-Processing Data
- Choose the Right Data Format
- Set Background Images Appropriately
- Reduce Your Web Footprint
- Set the Shadow Path
- Optimize Your Table Views
- Choose Correct Data Storage Option
Advanced
These are tips you should use only when you’re positive they’ll fix the issue, and you feel comfortable using them.
沒有留言:
張貼留言