Getting wrong carrier name in IOS

前端 未结 1 1853
情歌与酒
情歌与酒 2021-01-02 20:22

I am working on an IOS application.My requirement is to get the mobile carrier name.I used the following code.

In .h

#import 

        
相关标签:
1条回答
  • 2021-01-02 21:06

    Try with mobile country code & mobile network code like this:

    NSLog(@"Mobile Country Code: %@", [carrier mobileCountryCode]);
    NSLog(@"Mobile Network Code: %@", [carrier mobileNetworkCode]);
    

    Then you can use this list to match your results.

    http://en.wikipedia.org/wiki/Mobile_country_code

    Good luck.

    0 讨论(0)
提交回复
热议问题