Objective-C
iteye_15801
这个作者很懒,什么都没留下…
展开
-
Thu Rules of Cocoa Memory Management
When you create an object using [b]new, alloc, or copy[/b], the object has a retain count of 1. You are responsible for sending the object a release or autorelease message when you're done with it...原创 2011-08-11 09:05:14 · 114 阅读 · 0 评论 -
Objective-C NSDateFormater
[code="objective-c"]NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init]; [dateFormat setDateFormat:@"yyyy-MM-dd HH:mm Z"]; NSDate *selected = [datePicker date]; NSString *messa...原创 2011-08-26 10:50:19 · 105 阅读 · 0 评论