如何用object创建nsmutable数组

时间:2016-07-01 06:49:04

标签: ios arrays swift nsmutablearray nsarray

我想创建一个这样的数组:

"F017A_order_detail" = (
{
    id = 50158;
    "is_rx_medicine" = 1;
    "medicine_type_id" = 2;
    name = "1-11~qwe";
    "order_id" = 50128;
    price = "<null>";
    qty = 12;
    strengh = "12 mcg";
},
{
    id = 50159;
    "is_rx_medicine" = 1;
    "medicine_type_id" = 3;
    name = "1-12~qwe";
    "order_id" = 50128;
    price = "<null>";
    qty = 12;
    strengh = "12 ng/dL";
}

);

如何使用对象和键值对创建数组?

当我想添加时,如何在对象中添加值?

0 个答案:

没有答案