iOS??ó????????????????(??)
???????????? ???????[ 2013/5/10 10:36:51 ] ????????
?????????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??
??????
???·???
??????????????????
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