URL 重定向服务 RFShortUR
- 授权协议: public Domain
- 开发语言: Objective-C
- 操作系统: iOS
- 软件首页: https://github.com/rfunk82/RFShortURL
- 软件文档: https://github.com/rfunk82/RFShortURL/blob/master/README.md
软件介绍
RFShortURL 提供免费的 URL 重定向服务。把长URL 转换为较短的URL 。
服务提供地址: http://tinyurl.com
用法:
- 下载 RFShortURL
#import "RFShortURL.h"- 创建一个 RFShortURL 实例并且把自己设置成委派方,然后就可以使用委派方法接收URL了:
例子:
self.smallUrl = [[ RFShortURL alloc] init]; [self.smallUrl setDelegate:self]; [self.smallUrl shortURL:@"www.cnn.com"];
然后监听:
-(void)receivedUrl:(NSString *)url
{
NSLog(@"%@",url);
}
