Its pain in the AZZ to collect the Countries List and their Calling Codes.
So here it is, a small library to provide you a View Controller with Country List along with Calling Code and Country Code.
Drag and Drop CountryList folder to your Project and add the below code snippet in the button action method.
CountryListViewController *cv = [[CountryListViewController alloc] initWithNibName:@"CountryListViewController" delegate:self];
[self presentViewController:cv animated:YES completion:NULL];
Implement the delegate CountryListDelegate
- (void)didSelectCountry:(NSDictionary *)country
{
NSLog(@"Selected Country : %@", country);
}
Follow @pradyumna_d on Twitter for the latest news.
Available under the CC BY 3.0 license. See the LICENSE file for more info.
Thanks to Mr Nicolas Goles for his awesome gist https://gist.github.com/Goles/3196253