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