Is there a way to get information about the carrier of iPhones programmatically?
相关问题
- CALayer - backgroundColor flipped?
- Core Data lightweight migration crashes after App
- Core Data lightweight migration crashes after App
- How can I implement password recovery in an iPhone
- State preservation and restoration strategies with
相关文章
- 现在使用swift开发ios应用好还是swift?
- UITableView dragging distance with UIRefreshContro
- Could I create “Call” button in HTML 5 IPhone appl
- TCC __TCCAccessRequest_block_invoke
- Where does a host app handle NSExtensionContext#co
- Unable to process app at this time due to a genera
- Swift - hide pickerView after value selected
- How do you detect key up / key down events from a
1st Import
#import <CoreTelephony/CTTelephonyNetworkInfo.h>
as well as#import <CoreTelephony/CTCarrier.h>
(make sure you have the CoreTelephone.framework installed too).Heres the Swift version:
While developing in Swift 3.0, You just need to import CoreTelephony in you link binary with libraries in Build phases.
// Setup the Network Info and create a CTCarrier object
// Get carrier name
That's it.