Heim > Fragen und Antworten > Hauptteil
高洛峰2017-04-17 17:34:21
else
{
if ([personInfo.district isEqualToString:@"0"]||[personInfo.district isEqualToString:@""]) {
CD_StateRegional *stateDistrict = [CD_StateRegional MR_findFirstWithPredicate:[NSPredicate predicateWithFormat:@"city_code = %@",personInfo.city]];
labProvince.text = [NSString stringWithFormat:@"%@ %@",stateDistrict.province_name,stateDistrict.city_name];
}
else
{
CD_StateRegional *stateDistrict = [CD_StateRegional MR_findFirstWithPredicate:[NSPredicate predicateWithFormat:@"district_code = %@",personInfo.district]];
labProvince.text = [NSString stringWithFormat:@"%@ %@ %@",stateDistrict.province_name,stateDistrict.city_name,stateDistrict.district_name];
}
}