84669 人が学習中
152542 人が学習中
20005 人が学習中
5487 人が学習中
7821 人が学習中
359900 人が学習中
3350 人が学習中
180660 人が学習中
48569 人が学習中
18603 人が学習中
40936 人が学習中
1549 人が学習中
1183 人が学習中
32909 人が学習中
如题。比如 nsdictionary—— A:{b:1,c:2,d:3} 转成 nsarray —— {b:1,c:2,d:3}我只能想到用for循环来实现for(nsstring *str in [a allkeys]){ [b addObject:@{k:a[k]}];}有没有更简单的方法?
认证高级PHP讲师
函数式编程里的 map 函数, 你可以试试看 ReactiveCocoa,或者如果你用 swift 的话, map 函数是自带的。
函数式编程里的 map 函数, 你可以试试看 ReactiveCocoa,或者如果你用 swift 的话, map 函数是自带的。