代码改变生活

2015年4月24日

OC学习笔记 description

摘要: description 阅读全文

posted @ 2015-04-24 23:46 张大少。 阅读(141) 评论(0) 推荐(0) 编辑

OC学习笔记 xcode6 category 分类创建和使用

摘要: xcode6 分类 catepory 位置使用方法:对一个字符串里面阿拉伯数字计算个数1 #import 2 3 @interface NSString (Number)4 + (int)numberCountOfString :(NSString *)str;5 - (int)numString;... 阅读全文

posted @ 2015-04-24 11:30 张大少。 阅读(458) 评论(0) 推荐(0) 编辑

OC学习笔记 自定义构造方法扩展

摘要: 将子类父类方法初始化父类定义#import @interface Person :NSObject@property NSString *name;@property int age;- (id)initWithAge :(NSString *)name andAge:(int) age;@end父... 阅读全文

posted @ 2015-04-24 01:55 张大少。 阅读(243) 评论(0) 推荐(0) 编辑

关于 self 和 super 在oc 中 的疑惑 与 分析

摘要: 面试问的多基础好跟基础不好都可以写 代码,网上那么多资料。 区分高低也就是研究的深度和广度。开始我们的问题: 1 @implementation Son : Father 2 - (id)init 3 { 4 self = [super init]; 5 if (self) 6 ... 阅读全文

posted @ 2015-04-24 00:07 张大少。 阅读(284) 评论(0) 推荐(0) 编辑

导航

繁星纵变 智慧永恒