You should check the CTCarrier
.
Just import CoreTelephony
into your Swift file.
Then you can use the carrierName
property to get the name of your carrier.
// Setup the Network Info and create a CTCarrier object
let networkInfo = CTTelephonyNetworkInfo()
let carrier = networkInfo.subscriberCellularProvider
// Get carrier name
let carrierName = carrier.carrierName
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…