如果我将它用于NSDictionary,我如何将数组转换为字符串?字典将用作JSON中的参数。
这是我的代码。
'_emailsInApi = [[DBManager getSharedInstance]arrayOfEmails];
NSDictionary *params =@{@"api_key":@"APIKEY",@"action":@"get-status",@"email":[[[DBManager getInstance]Emails]description]};'
这是NSLog
array: (
"<Inquiry: 0x10d14cce0>",
"<Inquiry: 0x1092db900>",
"<Inquiry: 0x1092db9b0>",
"<Inquiry: 0x10d148610>",
"<Inquiry: 0x10d148690>",
"<Inquiry: 0x10d148710>",
"<Inquiry: 0x10d176fb0>",
"<Inquiry: 0x10d1770a0>",
"<Inquiry: 0x10d1d6610>",
"<Inquiry: 0x10d1d66c0>",
"<Inquiry: 0x1092d93f0>",
"<Inquiry: 0x1092d32c0>",
"<Inquiry: 0x1092d3340>",
"<Inquiry: 0x1092d33c0>",
"<Inquiry: 0x10d1482a0>"
)
这导致API返回某些电子邮件无效。
我的问题是:如何将_emailsInApi(数组)转换为字符串。这样它的价值就像myemail@email.com,secondemail @email.com .....
感谢您的帮助。