(
{
questionId = @"91";
responseLanguage = ar;
responseType = @"4";
},
{
questionId = @"92";
responseLanguage = ar;
responseType = @"2";
}
)
这将做到这一点,如果此数组正在生成动态,然后使用“ StringValue”方法将数字转换为字符串,以添加到字典中
NSDictionary *parameters = [NSDictionary dictionaryWithObjectsAndKeys:
[nsnumber stringValue], @"questionId",
ar, @"responseLanguage",
[nsnumber stringValue], @"responseType", nil];