How To Reload data from URL ???Only Can Load data in viewdidload?
问题 OK,First this program can load plist from URL by this code,and I put this in - (void)viewdidLoad{ NSURLRequest *theRequest=[NSURLRequest requestWithURL:[NSURL URLWithString:@"http://someurl.php"] cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:60.0]; NSURLConnection *theConnection=[[NSURLConnection alloc] initWithRequest:theRequest delegate:self]; NSLog(@"\n\nCONNECTION: %@", theConnection); NSData *returnData = [NSURLConnection sendSynchronousRequest:theRequest