2013-01-21 39 views

回答

13

我假設你的意思是NSString在這裏,而不是NSURL。如果Twitter曾經使用https爲PIC的網址,但你應該也可能檢查https://只是要確定

NSString *picURL = [currentTweet pic]; 
if (![picURL hasPrefix:@"http://"]) { 
    picURL = [@"http://" stringByAppendingString:picURL]; 
} 

不知道。