摘要:
这个类的作用就是在oc容器中不能放空,但是在有的情况下我们又需要放一个空,就有这个空对象的诞生 NSNull *p=[NSNull null];//这个对象是一个单例,所有的都是返回同一个对象 阅读全文
posted @ 2014-03-27 20:56
离子
阅读(185)
评论(0)
推荐(0)
摘要:
NSValue可以对任何非oc对象包装成oc对象,NSNumber是其的一个子类typedef struct date{ int year; int month; int day;} Date1;void arrayCreate(){ Date1 dd={2013,01,02}; NSValue * value=[NSValue value:&dd withObjCType:@encode(Date1)];//@encode(Date1)类型描述字符串 Date1 dd1; [value getValue:&dd1];//传入指针对dd1进行赋... 阅读全文
posted @ 2014-03-27 20:48
离子
阅读(149)
评论(0)
推荐(0)

浙公网安备 33010602011771号