我有一个 NSDictionary,当我对其进行 [currentOrder debugDescription] 调用时,布局如下,然后我执行以下操作:
[currentOrder valueForKey: @"itemOrder"]
它返回有趣的括号为:
(
"4 X ESPRESSO"
)
它应该只在哪里(不带括号):
4 X EXPRESSO
知道为什么吗?
当前订单的内容:
currentOrder: <__NSArrayM 0x68426c0>(
{
extra1Select = 0;
extra2Select = 0;
extra3Select = 0;
itemCost = 58;
itemOrder = "4 X ESPRESSO";
itemOrderDescription = "Cookie: YES, Sugar: YES";
itemQuantity = 4;
itemRestaurant = VidaECaffe;
plistItem = {
cost = "11.5";
description = "R11.50";
extra1 = {
desc = Cookie;
details = (
{
cost = "3.00";
option1 = YES;
},
{
cost = "0.00";
option2 = NO;
}
);
};
extra2 = {
desc = Sugar;
details = (
{
cost = "0.00";
option1 = YES;
},
{
cost = "0.00";
option2 = NO;
}
);
};
itemRestaurant = VidaECaffe;
level = 1;
title = ESPRESSO;
};
}
)