摘要: iOS官方命名规范文档:https://developer.apple.com/library/mac/documentation/Cocoa/Conceptual/CodingGuidelines/Articles/NamingBasics.html#//apple_ref/doc/uid/200... 阅读全文
posted @ 2015-07-27 00:50 羽航 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 类方法不依赖于对象,执行效率高,但不能访问成员变量对象方法的执行,需要先使用isa指针访问类,再执行所属类的对象方法当方法不需要访问成员变量时,首选实现类方法工具类:基本没有任何成员变量,而且里面的方法基本是类方法 self:指向方法调用者,在对象方法中,self代表着当前对象;在类方法中,sel... 阅读全文
posted @ 2015-07-25 15:27 羽航 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 《将博客搬至CSDN》 阅读全文
posted @ 2015-07-25 06:35 羽航 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 一、点语法本质“点语法”本质是“方法调用”当使用“点语法”时,编译器会自动展开称相应的方法id类型的对象不能用 点语法1 //方法调用2 Student *stu = [[Student alloc] init]; 3 [stu setAge:10]; 4 int age = [stu age];5... 阅读全文
posted @ 2015-07-25 01:33 羽航 阅读(901) 评论(0) 推荐(0) 编辑
摘要: 第三方类库: RegexKitLite:正则表达式、MAObjCRuntiome:反射、TouchXML:、JSON(SBJon):、ASIHTTPRequest:框架: libxml2.2.7.3.dylib\libz.dylib\libicudore.dylib正则表达式用的\SystemC... 阅读全文
posted @ 2015-07-24 20:12 羽航 阅读(221) 评论(0) 推荐(0) 编辑