?????????iOS??ó???????ó??????????????????????????????????????????????????????г???????????????????????

???????????iOS?豸???????????????????????????????????????????????У??????????????????????????????????????????

??????????????д???????!?????????25?????????????????????????????ɡ?

??????

????????????????????3??????????????????м???????

?????м?

?????????????????????????Щ???????????????????????????

???????ú???????View

???????楨???楨????

???????????

??????????澯??

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

???????Sprite Sheets

???????????′???????

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

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

????????Web????????

???????????·??

???????TableView

????????????????洢???

?????м?????????

?????????????д?????????????????????Щ?????????????????????滹???????Щ??????????????????????(???????????????????)?????????????????????ú???Щ???????????????????????????????!

????9) ???ú???????View

????????????а????????view????ζ?????????????????????и???????????;???ζ?????????????CPU????????????????????UIScrollView????????????view??

??????????????????????ο?UITableView??UICollectionView?????????????????????е?subview?????????????????????view???????view?????????????????????????С?

???????????????UIScrollView??????????????view????????????????view?????????——?????????????????

??????????????????????????????????????view???????????(????????????????????????????????view)????????????????????

?????????????μ??????????????????view;????????????????view?????????

?????????????view???????????????view??

?????????????и?????????????

?????????????????????????????????????????????view?????????棬???view??release????????????????????????????????????????????????view???????????????view????????ɡ?

?????????????????????????Ч??;??????????′???view????????????????;???????????????????????????????????view??

????10) ???楨???楨????

?????????????????????????????“?????????????”——??Щ??????????????????????????

???????????д????????????????????????????????????????????????????UITableView???и??

????NSURLConnection????HTTP????????????????Щ??????浽?????????????????????????????????NSURLRequest ??????????????????

????????????????????????????????NSURLRequest??

????+ (NSMutableURLRequest *)imageRequestWithURL:(NSURL *)url { NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:url]; request.cachePolicy = NSURLRequestReturnCacheDataElseLoad; // this will make sure the request always returns the cached image request.HTTPShouldHandleCookies = NO; request.HTTPShouldUsePipelining = YES; [request addValue:@"image/*" forHTTPHeaderField:@"Accept"]; return request;}

???????????????NSURLConnection?????URL??????????????????AFNetworking???????????????????????????????????——???????????!:]

????????????????????HTTP ???棬 NSURLCache?? NSURLConnection ???????????? ????????NSHipster?е?the NSURLCache entry??

???????????????????????漰??HTTP??????????NSCache??

????NSCache???????????NSDictionary????? ??????????????????????NSCache???????????洢???????Mattt Thompson ??NSHipster??д????????NSCache?????????????

??????????????????HTTP??????????????????????????Google????????£?best-practices document on HTTP caching??