??????????????????????????NSDateFormatter???????????????μ????????!??????????app?????????????????????????????????????е????С????????????

????14. ???Sprite Sheets

?????????????????????????Sprite sheets????????????????????Sprite sheet???????????????????????????????????????檔

?????????????????????Sprite?????

????How To Use Animations and Sprite Sheets in Cocos2D

????How to Create and Optimize Sprite Sheets in Cocos2D with Texture Packer and Pixel Formats

?????????????????????????????????????????pixel?????????

????????????spirte sheet?????????????????????????(youtube)???SpriteSheets – The Movie?? Part 1 ?? Part 2????????????????Sprite sheet?????е??????Texture Packer??????Andreas Löw??

???????????Sprite sheets??????д?????????鵱??????????????????С??????????????Sprite sheets??????????????????????????????????????Щsprites????????ζ?????′?????

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

??????????????????????????????????JSON????XML??????????????????????????????????????????????????в??????????????????????????????????

????????????????????????table view??????????????array??????????????????м?????????

?????????????????????key?????????????ü?????dictionary??

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

??????app?????????????????к??????????????JSON??XML??????????????app?????????????

????????JSON???XML?????Щ??JSON??????С???????????iOS5?????????????JSON deserialization ?????????????

????????XML???XML?????????????SAX ??????XML??????????????????????????json??????????????????????????????????????????????????????????????????????

????17. ????趨??????

??????View????????????????iOS???????к????:

???????UIColor?? colorWithPatternImage??????????;

??????view????????UIImageView????????View??

?????????????????????????????????UIImageView???UIColor??colorWithPatternImage??????????С????????????????????????????????UIImageView?????????????棺
 
// You could also achieve the same result in Interface Builder
UIImageView *backgroundView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"background"]];
[self.view addSubview:backgroundView];

???????????С???????????????????????UIColor??colorWithPatternImage?????????????????????????????棺

1
 
self.view.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"background"]];

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

????UIWebView????????????????????????????UIKit?????????????Ч??????????????

??????????????????UIWebView??????????Safari?????????????????JIT compilation ??????Webkit??Nitro Engine???????

????????????????????????????????HTML????????????????????????????????javascript????????ù???????????????js???????

?????????????????????????????????script??????????????javascript??

????????????????????????????????????????С?????Sprite sheet??????????????檔

????????????????????? WWDC 2012 session #601 – Optimizing Web Content in UIWebViews and Websites on iOS

????19. ?趨Shadow Path

????????????View???????layer??????shadow???QuartzCore???????????????
 
#import <QuartzCore/QuartzCore.h>
 
// Somewhere later ...
UIView *view = [[UIView alloc] init];
 
// Setup the shadow ...
view.layer.shadowOffset = CGSizeMake(-1.0f?? 1.0f);
view.layer.shadowRadius = 5.0f;
view.layer.shadowOpacity = 0.6;

?????????????????ɡ?

?????????????????????????????????????… Core Animation???ò????????ó??????β??????????????????????????

???????shadowPath????????????????

????view.layer.shadowPath = [[UIBezierPath bezierPathWithRect:view.bounds] CGPath];

???????shadow path???iOS??????ζ?????????????????????????????·???????????????????path??????????ЩView?б????????????view??frame?仯???????????update shadow path.

??????????????????Mark Pospesel???????

????20. ???Table View

????Table view????к?????????????????????????????з????????覴á?

?????????table view?????????????????????μ???:

??????????`reuseIdentifier`??????cells

????????????е?view opaque??????cell????

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

?????????и?

???????cell???????????????web??????????????????????

???????`shadowPath`???????

????????subviews??????

??????????????`cellForRowAtIndexPath:`??????????????????????????????

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

???????`rowHeight`?? `sectionFooterHeight` ?? `sectionHeaderHeight`???趨??????????????delegate

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

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

???????к????????磺

???????`NSUerDefaults`

???????XML?? JSON?? ???? plist

???????NSCoding?浵

???????????SQLite?????SQL?????

??????? Core Data

????NSUserDefaults??????????????????nice???????????????????С??????????Щ?????????????????????????????????????

????XML?????????????????????????????????????????????????????????????????????SAX??????????鷳?????顣

????NSCoding?????????????????д????????????????????

????????????ó????£????SQLite ???? Core Data???á??????Щ???????????????????????????????????

???????????????????SQLite??Core Data?????????????????????????÷?????Core Data????????????graph model????SQLite?????DBMS??Apple????????????????Core Data??????????????????????????????????????SQLite?ɡ?

????????????SQLite?????????FMDB(https://GitHub.com/ccgus/fmdb)?????????SQLite????????????????????????SQLite??C API???

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

????????Щ??????????????????????????????????Щ??????????????app?????!

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

?????????app?????????????????????δ????????app?????????????????????

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

??????????仰?????????????XIB??????????????????????????????????????????????Storyboards??!

?????????Xcode debug?watchdog???????У????????豸??Xcode???????????????

????23. ???Autorelease Pool

????`NSAutoreleasePool`???????block?е?autoreleased objects???????????????????UIKit???á???????Щ???????????????????????

??????????????????????????????????????????Щ????release??????????????е?UIKit?ù???autorelease pool?????memory???????

?????????????????????????@autoreleasepool??????????????????????????
 
NSArray *urls = <# An array of file URLs #>;
for (NSURL *url in urls) {
    @autoreleasepool {
        NSError *error;
        NSString *fileContents = [NSString stringWithContentsOfURL:url
                                         encoding:NSUTF8StringEncoding error:&error];
        /* Process the string?? creating and autoreleasing more objects. */
    }
}