2013年1月23日

Beginning ARC in iOS 5 Tutorial Part 1

摘要: http://www.raywenderlich.com/5677/beginning-arc-in-ios-5-part-1ARC is a feature of the new LLVM 3.0 compiler and it completely does away with the manual memory management that all iOS developers love to hate.strong and weakBy default all instance variables and local variables are strong pointers.The 阅读全文

posted @ 2013-01-23 06:16 Chansonyan 阅读(189) 评论(0) 推荐(0)

2013年1月21日

Objective C New stuffs that I dont know

摘要: http://www.raywenderlich.com/21320/objectively-speaking-a-crash-course-in-objective-c-ios6 IOS 61. To create an array, there’s a handy new shortcut in Objective-C – @[ item1, item 2, item 3 ].@property (nonatomic, strong) NSArray *myQuotes;// 1 - Add array of personal quotes self.myQuotes = @[ ... 阅读全文

posted @ 2013-01-21 21:42 Chansonyan 阅读(184) 评论(0) 推荐(0)

2013年1月20日

Objective C nonatomic, strong

摘要: the nonatomic attribute increases performance at the cost of thread-safety, and the strong attribute indicates that a pointer to the specified variable will stay in memory as long as the object that holds the pointer exists 阅读全文

posted @ 2013-01-20 23:05 Chansonyan 阅读(145) 评论(0) 推荐(0)

C 调用 C++

摘要: http://blog.chinaunix.net/uid-20672257-id-2973996.html 阅读全文

posted @ 2013-01-20 19:05 Chansonyan 阅读(110) 评论(0) 推荐(0)

导航