RFShortURL for iOS by Ricardo Funk

Download Source

RFShortURL provides free URL redirection service. Turns a long URL into a much shorter one.

Service provided by http://tinyurl.com

How To Get Started

  1. Download RFShortURL

  2. #import "RFShortURL.h"

  3. Create an instance of RFShortURL and set yourself as the delegate, then just listen for a response using the delegate method receivedUrl:

Ex:

self.smallUrl = [[ RFShortURL alloc] init];

[self.smallUrl setDelegate:self];

[self.smallUrl shortURL:@"www.cnn.com"];

Then we just listen:

-(void)receivedUrl:(NSString *)url fromOriginalUrl:(NSString *)originalUrl

{

self.displayShortUrl.text = url;

NSLog(@"Original URL: %@ Received Short URL: %@", originalUrl,url);

}

License: Public Domain

Language: Objective-C

by 1 person

(Click the stars to add your rating)

Sponsored with ❤️ by Instabug
Why do mobile-first companies choose Instabug over Crashlytics
Instabug

Instabug helps you identify and resolve severe crashes quickly. You can retrace in-app events and know exactly which line of code caused the crash along with environment details, network logs, repro steps, and the session profiler. Ask more questions or keep users up-to-date with in-app replies straight from your dashboard. We take data privacy seriously, so no one sees your data but you!