// ======= 獲取資源文件路徑 ========
// 獲取資源文件路徑
NSString *path = [[NSBundle mainBundle]pathForResource:@"QQData.plist" ofType:nil];
// 獲取字典 所有的數(shù)據(jù)
dic = [NSDictionary dictionaryWithContentsOfFile:path];
// 獲取所有的 key (標(biāo)題)
arr = [dic allKeys];
// 獲取該商品對應(yīng)的數(shù)據(jù)
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];
// 根據(jù)組號 從dic取出每小組
peopleArr = [dic objectForKey:str];