ios 地区选择控件 传到另一个页面怎么是数字?
PHP中文网
PHP中文网 2017-04-17 17:32:21
0
3
261

ios 地区选择控件 传到另一个页面怎么是数字?

传值过来


怎么变成数字了?

PHP中文网
PHP中文网

认证高级PHP讲师

reply all(3)
小葫芦

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.

PHPzhong

Are the parameters you passed incorrect?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template