Skip to content

🇨🇳Country code, international area code, registration and login to select the country, the interface value is obtained by proxy delegate and block, free choice, 国家代码,国际区号,注册登录选择国家,界面传值采用代理delegate和block两种方式,自由选择

License

Notifications You must be signed in to change notification settings

qxuewei/XWCountryCode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

XWCountryCode

国家代码,国际区号,注册登录选择国家

演示效果:

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

    XWCountryCodeController *countryCodeVC = [[XWCountryCodeController alloc] init];

    /// 使用代理回调
    //    countryCodeVC.deleagete = self;
    
    
    /// 使用 Block 回调
    __weak __typeof(self)weakSelf = self;
    countryCodeVC.returnCountryCodeBlock = ^(NSString *countryName, NSString *code) {
        __strong __typeof(weakSelf) strongSelf = weakSelf;
        strongSelf->showCodeLB.text = [NSString stringWithFormat:@"国家: %@  代码: %@",countryName,code];
    };

    [self.navigationController pushViewController:countryCodeVC animated:YES];

更新 - 2019.10.30

  • UISearchController 替换 UISearchDisplayController 实现搜索

About

🇨🇳Country code, international area code, registration and login to select the country, the interface value is obtained by proxy delegate and block, free choice, 国家代码,国际区号,注册登录选择国家,界面传值采用代理delegate和block两种方式,自由选择

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published