title: Object-c/iOS :How to use ASynchronous to get a data from URL?
body: <p>My friend saw my code, a part is get a plist data from URL</p>
  
  <p>And he told me not to use Synchronous,Use ASynchronous </p>
  
  <p>But I don't know how to do ASynchronous in simple way</p>
  
  <p>This is the code I use in my program</p>
  
  <pre><code>NSURL *theURL =  [[NSURL alloc]initWithString:@"http://someurllink.php" ];
  NSURLRequest *theRequest=[NSURLRequest requestWithURL:theURL
                                            cachePolicy:NSURLRequestUseProtocolCachePolicy
                                            timeoutInterval:60.0];
  NSData *returnData = [NSURLConnection sendSynchronousRequest:theRequest returningResponse:nil error:nil]; 
  NSString *listFile = [[NSString alloc] initWithData:returnData encoding:NSUTF8StringEncoding];   
  self.plist = [listFile propertyList];
  [self.tableView reloadData];
  [listFile autorelease];
  </code></pre>
  
  <p>How can I change my code use ASynchronous to get the data ?</p>
  
  <p>Great thanks for all reply and answers : )</p>