https://github.com/dids/ddcarrier
A universal Objective-C library (iOS) for quickly getting the current mobile carrier name.
https://github.com/dids/ddcarrier
Last synced: about 1 year ago
JSON representation
A universal Objective-C library (iOS) for quickly getting the current mobile carrier name.
- Host: GitHub
- URL: https://github.com/dids/ddcarrier
- Owner: Dids
- License: mit
- Created: 2014-10-09T09:52:17.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2017-06-19T05:47:25.000Z (almost 9 years ago)
- Last Synced: 2025-04-11T16:32:11.496Z (about 1 year ago)
- Language: Objective-C
- Size: 20.5 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# DDCarrier [](https://travis-ci.org/Dids/DDCarrier)
DDCarrier is a simple, universal Objective-C iOS library for quickly getting the current carrier name.
DDCarrier is part of the DD-projects (check them out, they're cool!):
- DDDevice - Combines all DD-project in to one neat library (Coming Soon)
- [DDVersion](https://github.com/Dids/DDVersion.git) - Easily get the device name and type
- [DDCarrier](https://github.com/Dids/DDCarrier.git) - Easily get the current carrier name
- DDSize - Easily find out the device resolution (Coming Soon)
- [DDNavText](https://github.com/Dids/DDNavText.git) - Additional text for UINavigationBar title
More DD-projects are under development and will be added once completed.
## Usage
```objective-c
// Get the device type as a string (eg. "Verizon" or "N/A" when not found)
[DDCarrier carrierName];
```
## Demo
To run the example project, simply open up `DDCarrierDemo.xcodeproj` and hit Build & Run.
## Requirements
## Installation using CocoaPods (RECOMMENDED)
DDCarrier is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod "DDCarrier"
```
## Manual Installation
Simply copy `DDCarrier.h` and `DDCarrier.m` to your project, add `CoreTelephony` to your project and import DDCarrier.h like so:
```objective-c
#import "DDCarrier.h"
```
Using the CocoaPod installation method is recommended over the manual installation, as this way your copy of DDCarrier is always up to date.
## Author
Pauli 'Dids' Jokela, pauli.jokela@didstopia.com and Didstopia, http://didstopia.com
## License
DDCarrier is available under the MIT license. See the LICENSE file for more info.