Latest 0.0.2
Homepage https://github.com/dkasper/DKCountryPicker
License MIT
Platforms ios 7.0, requires ARC
Dependencies libPhoneNumber-iOS
Authors

DKPhonePicker

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.

Example

-(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];
}

Screenshot

ScreenShot

Latest podspec

{
    "name": "DKCountryPicker",
    "version": "0.0.2",
    "summary": "A simple control for searching/selecting countries.",
    "description": "                   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.n",
    "homepage": "https://github.com/dkasper/DKCountryPicker",
    "screenshots": "https://github.com/dkasper/DKCountryPicker/raw/master//ScreenShot.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "David Kasper": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/dkasper/DKCountryPicker.git",
        "tag": "0.0.2"
    },
    "source_files": "DKCountryPicker/DKCountryPickerViewController.{h,m}",
    "requires_arc": true,
    "dependencies": {
        "libPhoneNumber-iOS": []
    }
}

Pin It on Pinterest

Share This