????д?????

????????????iOS Tutorial Team ?? Marcelo Fabri??????Movile????? iOS ???????????????????????http://www.marcelofabri.com/??????????Twitter????@marcelofabri_??

????????? iOS ??????????????????????????????????????????????????????????д??App Store??????????????iOS?豸?????????????????????????????????????????к??????????????????????????????????????????????

????????????д????????μ???????????????????????????????????????????????????app?????25?????????ɡ?

???????????????????£????δ????app?????!

?????????????????????????????????????????”????”??????????????????Instruments?profile???????????????????????檔Matt Gallowayд???????????????Instruments???????????????

???????????????????г????????Щ???????д????????????????????app????????????????Ч???????????????????????????????????????????????????

??????

???????????????齫???????????????? ??????? ?м?????????

?????????(????Щ???????????????app?????е????)

????1. ??ARC???????

????2. ????????????reuseIdentifier

????3. ???????Views???

????4. ????????XIB

????5. ???block?????

????6. ??Image Views?е???????С

????7. ????????Collection

????8. ??gzip???

?????м?(??Щ??????????Щ???????????????????)

????9. ???ú???????Views

????10. Cache?? Cache?? ????Cache!

????11. ??????????

????12. ??????澯??

????13. ????????????

????14. ???Sprite Sheets

????15. ??????????????

????16. ??????????????

????17. ??????趨Background Images

????18. ???????Web????

????19. ?趨Shadow Path

????20. ??????Table View

????21. ????????????洢???

?????????(??Щ????????????????????????????????????????2???)

????22. ??????????

????23. ???Autorelease Pool

????24. ??????????

????25. ?????????????????

???????????????????????????~

?????????????????

??????????????????Щ?????????????????????в?ε????????п??????????????Щ????????????СС???????????????Щ??????

????1. ??ARC???????

????ARC(Automatic Reference Counting?? ??????ü???)??iOS5???????????????????????????????????????????????????????й??????????????retain??release????????????????????????

???????????????????????????View??????:

 
UIView *view = [[UIView alloc] init];
 // ...
 [self.view addSubview:view];
 [view release];

???????????ν?β??release??????ó???????????ARC????????????????Щ??????

?????????????????й???ARC?????????????????????????????????????????檔???????????????????????????????ARC!

???????????Щ???????ARC?????????

????Apple’s official documentation

????Matthijs Hollemans’s Beginning ARC in iOS Tutorial

????Tony Dahbura’s How To Enable ARC in a Cocos2D 2.X Project

????If you still aren’t convinced of the benefits of ARC?? check out this article on eight myths about ARC to really convince you why you should be using it!

????ARC????????????????????й??????????????????? retain ????? ??????????CoreFoundation object(????C??)???????????????????????й???

???????????????????ARC??????????????????????????? http://conradstoll.com/blog/2013/1/19/blocks-operations-and-retain-cycles.html??

????2. ???????????? reuseIdentifier

????????????г????????????и?UITableViewCells?? UICollectionViewCells????????UITableViewHeaderFooterViews?????????reuseIdentifier??

????????????????table view?? `tableView:cellForRowAtIndexPath:` ?rows????cells??????????????????????UITableViewCell?? ???table view?????????е???????????UITableViewCell????