三行代码集成国家区号选择功能

功能执行效果如图:
iOS-国家代码选择功能github开源分享

开源链接:
https://github.com/qxuewei/XWCountryCode

用法:

1.导入XWCountryCode类

2.在须要选择国家代码的事件中

 XWCountryCodeController *CountryCodeVC = [[XWCountryCodeController alloc] init];
    //CountryCodeVC.deleagete = self;
    //block
    [CountryCodeVC toReturnCountryCode:^(NSString *countryCodeStr) {
        //在此处实现终于选择后的界面处理
        [self.countryCodeLB setText:countryCodeStr];
    }];
    [self presentViewController:CountryCodeVC animated:YES completion:nil];

界面传值提供了代理和block两种方式,自由选择

相关文章:

  • 2021-06-24
  • 2022-12-23
  • 2021-11-13
  • 2022-12-23
  • 2022-12-23
  • 2021-05-18
  • 2022-12-23
猜你喜欢
  • 2022-02-18
  • 2022-12-23
  • 2021-10-10
  • 2022-12-23
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
相关资源
相似解决方案