An Objective-C library for checking your IP address from ipify.org
Shell Objective-C Ruby C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Example
Pod
.gitignore
.travis.yml
CHVIpify.podspec
LICENSE
README.md
_Pods.xcodeproj

README.md

CHVIpify

CI Status Version License Platform

Usage

Sometimes you need the IP address of the user's iphone. In this case you can use ipify.org to simplify this!

#import "CHVIPRetriever.h"

CHVIPRetriever *retriever = [CHVIPRetriever new];

[retriever getIPAddress:^(NSString *ip, NSError *error) {
NSLog(@"IP: %@", ip); //your ip..
}];

Requirements

  • ARC
  • iOS7

Installation with CocoaPods

CHVIpify is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "CHVIpify"

Installation without CocoaPods

Just drag and drop CHVFetchIPManager.h and CHVFetchIPManager.m to your project

Author

Chuong Vu

Credit

Big thanks to Randall Degges for running and maintaining ipify!

License

CHVIpify is available under the MIT license. See the LICENSE file for more info.