iOS???????????25??????????
???????????? ???????[ 2013/4/27 10:45:11 ] ????????
????д?????
????????????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????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11