项目介绍:
一个简单的,极其简单的选择国家区号的工具,Manager分离,可单独使用,区号文件写在本地。使用方法:
- CodeSelectViewController *vc = [[CodeSelectViewController alloc]init];
- __weak __typeof(&*self)weakSelf = self;
- [vc setDidSelectCode:^(NSString *country, NSString *code) {
- weakSelf.m_lblCode.text = [NSString stringWithFormat:@"国家:%@ 代码:%@",country,code];
- }];
- [self.navigationController pushViewController:vc animated:YES];
复制代码