TestsTested | ✗ |
LangLanguage | Obj-CObjective C |
License | MIT |
ReleasedLast Release | Dec 2014 |
Maintained by Unclaimed.
Was surprised that I couldn't find one so I made a simple control for searching/selecting countries. Especially useful for using in signup forms where you need to select a country for a phone number or postal address.
-(IBAction)showPicker:(id)sender {
DKCountryPickerViewController *picker = [[DKCountryPickerViewController alloc] initWithStyle:UITableViewStylePlain];
picker.pickerDelegate = self;
[self presentViewController:picker animated:YES completion:nil];
}
-(void)countryPickerValueSelected:(NSDictionary *)userInfo {
NSLog(@"%@",userInfo[@"name"]);
[self dismissViewControllerAnimated:YES completion:nil];
}