0

これは機能していないようです:

NSString *key = @"mykey";

NSString *shortenedStrURL = [NSString stringWithContentsOfURL:[NSURL URLWithString:[NSString stringWithFormat:@"https://www.googleapis.com/urlshortener/v1/url?key=%@&longUrl=%@", key,strURL]] encoding:NSUTF8StringEncoding error:nil];

return [NSURL URLWithString:strURL];
4

0 に答える 0