libPhoneNumber-iOS icon indicating copy to clipboard operation
libPhoneNumber-iOS copied to clipboard

011913456789012 Phone Number to get Country Code its not working

Open urmi1 opened this issue 7 years ago • 0 comments

I have used this method to get country code

            NBPhoneNumberUtil *phoneUtil = [[NBPhoneNumberUtil alloc] init];
            NSString *nationalNumber = nil;
            NSNumber *countryCode = [phoneUtil extractCountryCode:@"011913456789012" nationalNumber:&nationalNumber];
            

But it return [0] as a result.

I have saved this format of number to call from USA to INDIA.

SO please help me for this to get proper country code (01191) Thank you. @iziz

urmi1 avatar May 31 '17 03:05 urmi1