plist

// ======= 获取资源文件路径 ========
// 获取资源文件路径
NSString *path = [[NSBundle mainBundle]pathForResource:@"QQData.plist" ofType:nil];

// 获取字典 所有的数据
dic = [NSDictionary dictionaryWithContentsOfFile:path];

// 获取所有的 key (标题)
arr = [dic allKeys];

// 获取该商品对应的数据
NSArray *dataArr = [dic objectForKey:arr[indexPath.row]];

=================================

NSString *path = [[NSBundle mainBundle]pathForResource:@"group.plist" ofType:nil];
dic = [NSDictionary dictionaryWithContentsOfFile:path];
// 装的都是小组(arr[小组名1,小组名2,小组名3])
groupArr = [dic allKeys]

return groupArr.count;

NSString *str = groupArr[section]; // -->第一组
// 通过编号 拿到小组 arr[武璐昶,杨洁,郭晓东,赵晓君];
peopleArr = [dic objectForKey:str];
//
return peopleArr.count;

// 拿到组号.
NSString *str = groupArr[indexPath.section];
// 根据组号 从dic取出每小组
peopleArr = [dic objectForKey:str];

推荐阅读更多精彩内容