NSMutableArray中存放struct变量的方法
摘要:
如何将一个struct结构体变量存放到NSMutableArray中呢?与将数值型变量类似,不过这次是将其转换为NSValue对象。假设结构体:struct testStruct { int value1; int value2; };存入的代码struct testStructt; t.value1=1; t.value2=2; //将struct对象装入到NSArray中 [testArra... 阅读全文
posted @ 2012-11-24 12:02 流れ星ーー 阅读(236) 评论(0) 推荐(0) 编辑