0
這似乎很簡單,但不容易的,我..我打電話了幾個同步ASIHTTPRequests並在每個請求完成後,我想更新像下面的一個標籤..同步ASIHTTPRequest更新標示
self.status.text = @"Google";
NSURL *url = [NSURL URLWithString:@"http://www.google.com"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request startSynchronous];
self.status.text = @"Yahoo";
NSURL *url = [NSURL URLWithString:@"http://www.yahoo.com"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request startSynchronous];
self.status.text = @"Apple";
NSURL *url = [NSURL URLWithString:@"http://www.Apple.com"];
ASIHTTPRequest *request = [ASIHTTPRequest requestWithURL:url];
[request startSynchronous];
然而,一旦所有通話完成,它只會顯示「Apple」。什麼是實現此目的的簡單和最佳方法?