ios 地区选择控件 传到另一个页面怎么是数字?
传值过来
怎么变成数字了?
认证高级PHP讲师
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]; } }
It depends on how the functions related to the regional control you are using are implemented. It is possible that 14 corresponds to Shanxi, 10 corresponds to Linfen, and 31 corresponds to X County.
Are the parameters you passed incorrect?
else
It depends on how the functions related to the regional control you are using are implemented. It is possible that 14 corresponds to Shanxi, 10 corresponds to Linfen, and 31 corresponds to X County.
Are the parameters you passed incorrect?