Objective-C
nerohoop
这个作者很懒,什么都没留下…
展开
-
Objective-C基础知识-Initializer
Initializer 1. The designated initializer is the method in each class that guarantees inherited instance variables are initialized (by sending a message to super to perform an inherited method) 2.原创 2011-11-20 13:00:55 · 88 阅读 · 0 评论 -
Objective-C基础知识Property
Property A “property” is just the combination of a getter method and a setter method in a class. You can use the form property=ivar to indicate that a particular instance variable should be used for原创 2011-11-19 20:29:39 · 108 阅读 · 0 评论 -
Objective-C基础知识之Protocol
Protocol Declaring Interfaces for Others to Implement 1. Informal and formal protocols declare methods that are independent of any specific class, but which any class, and perhaps many classes,翻译 2011-11-22 17:51:02 · 85 阅读 · 0 评论 -
Objective-C基础知识总结
NSRange NSRange range = [self.displayLabel.text rangeOfString:@"."]; typedef struct _NSRange { NSUInteger location; NSUInteger length; } NSRange; 如果字符串中未包含字符,那么range.location=NSNotFound原创 2011-11-21 12:49:05 · 235 阅读 · 0 评论 -
self用法的总结
关于什么时间用self. , 其实是和Obj-c的存取方法有关, 不过网上很多人也都这么解答的, 那它为什么和存取方法有关? 怎么有关的? 并没有多少人回答出来. 同时关于内存管理的内容, 请大家看旺财勇士的Objective-C内存管理总结~CC专版 , 有些东西我就不多解释了. 进入正题, 我们经常会在官方文档里看到这样的代码: MyClass.h @interface转载 2012-01-17 17:59:16 · 228 阅读 · 0 评论