摘要:
typedef struct { int year; int month; int day; }Date;void value(){ Date date = {2013,9,30}, //void *代表任何类型的指针 //这里要穿结构图的地址&date //根据结构体类型生成对应的描述字符串 char* type = @encode(Date); NSValue *value=[NSValue value:&date withObjCType :type]; //定义结构体变量 Date ... 阅读全文
posted @ 2013-09-30 11:10
yyh123
阅读(204)
评论(0)
推荐(0)

浙公网安备 33010602011771号