iOS、Mac用の短縮URLライブラリ
https://github.com/theaudience/URL-Shortener
goo.gl、bit.lyなど選べてblockで短縮URL得られるので便利
UrlShortener *shortener = [[UrlShortener alloc] init]; [shortener shortenUrl:landingPage withService:UrlShortenerServiceGoogle completion:^(NSString *shortUrl) { // complete } error:^(NSError *error) { // Handle the error. NSLog(@"Error: %@", [error localizedDescription]); }];