iOS 이통사 정보 가져오기 ( CTCarrier carrierName )
CTCarrier
이통사의 정보를 가져오고자 할 경우에 사용하는 클래스입니다.
어떤 정보를 가져올 수 있는지 알아볼까요?
고유 식별자 및 네트워크에서 VoIP 통화를 허용하는지 여부와 같은 사용자의 셀룰러 서비스 공급자에 대한 정보.
그럼 구체적으로 어떠한 정보들을 가져올 수 있을까요?
이동 통신사에 대한 정보 얻기
| var Name | return | Desc |
| var allowsVOIP | Bool | 이동 통신사가 네트워크에서 VoIP 통화를 허용하는지 여부. |
| var carrierName | String | 사용자의 셀룰러 서비스 제공 업체의 이름. |
| var isoCountryCode | String | 사용자의 이동 통신사에 대한 ISO 국가 코드 |
| var mobileCountryCode | String | 사용자의 이동 통신 서비스 제공 업체의 MCC (Mobile Country Code, 모바일 국가 코드) |
| var mobileNetworkCode | String | 사용자의 이동 통신 서비스 제공 업체의 모바일 네트워크 코드 |
그럼 어떻게 사용하는지 확인해볼까요?
@import CoreTelephony;
- (void)viewCarrierInfo {
[super viewCarrierInfo];
CTTelephonyNetworkInfo *netInfo = [[CTTelephonyNetworkInfo alloc] init];
CTCarrier *carrier = netInfo.subscriberCellularProvider;
if (carrier) {
// 이통사 이름
NSLog(@" Carrier Name : %@", carrier.carrierName);
// 모바일 국가코드(MCC)
NSLog(@" Mobile Country Code(MCC) : %@", carrier.mobileCountryCode);
// ISO 국가코드
NSLog(@" iso Country Code : %@", carrier.isoCountryCode);
// 모바일 네트웍 코드
NSLog(@" Mobile Network Code : %@", carrier.mobileNetworkCode);
}
}
그리고, 출력되는 결과는?
Carrier Name : KT
Mobile Country Code(MCC) : 450
iso Country Code : kr
Mobile Network Code : 04
아래 링크는 위키피디아에서 제공하는 모바일 국가 코드(MCC) 정보입니다.
en.wikipedia.org/wiki/Mobile_country_code
Mobile country code
From Wikipedia, the free encyclopedia Jump to navigation Jump to search The ITU-T Recommendation E.212 defines mobile country codes (MCC) as well as mobile network codes (MNC). Overview[edit] The mobile country code consists of three decimal digits and the
en.wikipedia.org
Korea MCC, MNC List
| MCC (Mobie Country Code) |
MNC (Mobile Network Code) |
Brand | Operator | Status | Bands (MHz) | References and notes |
| 450 | 01 | Globalstar Asia Pacific | Operational | Satellite | ||
| 450 | 02 | KT | KT | Operational | 5G 3500 / 5G 28000 | former Hansol PCS (CDMA 1800), merged with KT in 2002 |
| 450 | 03 | Power 017 | Shinsegi Telecom, Inc. | Not operational | CDMA 850 | Merged with SK Telecom in 2002; MNC withdrawn |
| 450 | 04 | KT | KT | Operational | LTE 1800 | NB-IoT network (LTE Cat NB1); former CDMA 1800 |
| 450 | 05 | SKTelecom | SK Telecom | Operational | UMTS 2100 / LTE 850 / LTE 1800 / LTE 2100 / LTE 2600 / 5G 3500 / 5G 28000 | CDMA 850 shut down June 2020 |
| 450 | 06 | LG U+ | LG Telecom | Operational | CDMA 1800 / LTE 850 / LTE 2100 / LTE 2600 / 5G 3500 / 5G 28000 | |
| 450 | 07 | KT | KT | Unknown | Unknown | |
| 450 | 08 | olleh | KT | Operational | UMTS 2100 / LTE 900 / LTE 1800 / LTE 2100 | |
| 450 | 11 | Tplus | Korea Cable Telecom | Operational | MVNO | MVNO of SK Telecom |
| 450 | 12 | SKTelecom | SK Telecom | Operational | LTE 850 / LTE 1800 | IoT network (LTE Cat M1) |
아래 링크는 모바일 네트웍 코드에 대한 목록으로, 각 국가마다의 정보를 확인하실 수 있습니다.
en.wikipedia.org/wiki/Mobile_Network_Codes_in_ITU_region_4xx_(Asia)#South_Korea_%E2%80%93_KR
Mobile Network Codes in ITU region 4xx (Asia)
This list contains the mobile country codes and mobile network codes for networks with country codes between 400 and 499, inclusively – a region that covers Asia and the Middle East. However, the Asian parts of the Russian Federation and Turkey are inclu
en.wikipedia.org