好的,所以我像这样填充数组:
NSMutableArray *participants;
for(int i = 0; i < sizeofpm; i++){
NSDictionary *pmpart_dict = [pm_participants objectAtIndex:i];
NSString *pmpart_email = [pmpart_dict objectForKey:@"email"];
NSString *pmpart_email_extra = [@"pm" stringByAppendingString:pmpart_email];
[participants setValue:pmpart_email forKey:pmpart_email_extra];
NSLog(@"%@", participants);
}
sizeofpm 为 1。即使用计数。获取数组中值的数量。如何将值存储到该数组?它似乎没有工作。谢谢!