Author
Description
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
Download RFShortURL
#import "RFShortURL.h"
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);
}