title: How to load JSON data asynchronously and populate UITableView during the data loading in objective-C
body: <p>I am beginner in iOS and objective C programming, and I have an issue I didn't manage to solve because I just don't know where to begin, and what to do. Here is the context : I have a sidebar menu (like facebook's one), and when you select a  category of this sidebar menu, I display an UITableView that contents a list of image and some text, the list of image and the text comes from internet with a JSON feed. My app currently works fine, but each time I change the category it freezes the time to load JSON data from internet. Here is a sample of code of my TableViewController.m :</p>
  
  <pre><code>- (void)viewDidLoad {
      [super viewDidLoad];
      [self refreshTable];
  }
  
  -(void)refreshTable {
      // Send a synchronous request
      NSURLRequest * urlRequest = [NSURLRequest requestWithURL:[NSURL URLWithString:URLValue]];
      NSURLResponse * response = nil;
      NSError * error = nil;
      NSData * data = [NSURLConnection sendSynchronousRequest:urlRequest
                                        returningResponse:&amp;response
                                                    error:&amp;error];
  
      if (error == nil)
      {
          // Parse JSON data
      }
  }
  </code></pre>
  
  <p>I would really appreciate some explanations with the steps to follow since I am really beginner. I have found some similar questions and they talk about delegate, what is delegate and how do I call it?</p>
  
  <p>Thank you very much guys for taking the time to read my issue.</p>