文件名称:全国省市县plist xml
文件大小:129KB
文件格式:PLIST
更新时间:2018-07-02 09:34:43
省市县plist xml
//附上一段object-c解析代码 NSArray *ary = [NSArray arrayWithContentsOfFile:[[NSBundle mainBundle] pathForResource:@"ProvinceCityDistrict" ofType:@"plist"]]; for (int i = 0; i < ary.count; i ++) { NSDictionary *province = ary[i]; for(NSString *akey in province){ NSLog(@"%@",akey); NSDictionary *p0 = province[akey]; [mProvinceAry addObject:akey]; for(NSString *city in p0){ NSDictionary *citys = p0[city]; for(NSString *shen in citys){ NSLog(@"%@",shen); NSMutableArray *xians = citys[shen]; for (int y = 0; y < xians.count; y++) { NSLog(@"%@",xians[y]); } } } } }