/XWCountryCode

国家代码,国际区号,注册登录选择国家,界面传值采用代理delegate和block两种方式,自由选择

Primary LanguageObjective-CApache License 2.0Apache-2.0

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两种方式,自由选择