title: How to perform multiple JSON connections in the same viewController
body: <p>In a viewController I am using the following code to execute a JSON connection:</p>
  
  <p>In viewDidLoad method:</p>
  
  <pre><code> //URL definition where php file is hosted
      NSURL *url = [NSURL URLWithString:@"http://mujercanariasigloxxi.appgestion.eu/app_php_files/empresastodaslist.php"];
      // URL request
      NSURLRequest *request = [NSURLRequest requestWithURL:url];
      //URL connection to the internet
      [[NSURLConnection alloc]initWithRequest:request delegate:self];
  
  
  //methods to perform the connection and population of data
  
  -(void)connection: (NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
  {
      data = [[NSMutableData alloc]init];
  }
  
  -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)thedata
  {
      [data appendData:thedata];
  }
  -(void)connectionDidFinishLoading:(NSURLConnection *)connection
  {
      //if data received network indicator not visible
      [UIApplication sharedApplication].networkActivityIndicatorVisible=NO;
  
      //array waterfalls populated via JSON from database
      categorias = [NSJSONSerialization JSONObjectWithData:data options:nil error:nil];
  
      NSLog(@"NUMERO DE EMPRESAS = %lu"
            , (unsigned long)[categorias count]);
  }
  </code></pre>
  
  <p>I need to do the same in the same viewController but requesting two other different PHP files to create two more NSArrays.</p>
  
  <p>I don't find problems just making a copy of the code inside the viewDidLoad method, renaming NSURl / NSURLRequest and changing the URL for the two others URLs, but I don't know how to implement the connection methods for the two new URLs.</p>