title: How to maintain two api's within one UIViewController?
body: <p>I have one ViewController in that one UIImage and two UITextField's one UITableView in that i want to print the data.That data coming from api.</p>
  
  <p>From  the first api i want to display the UIImage and UITextField's data.
  From the Second Api load the data into UITableView. How can do that ?</p>
  
  <p>Upto now i tried this</p>
  
  <pre><code>-(void)viewDidLoad
  {
  [super viewDidLoad];
  NSString *urlString = [NSString stringWithFormat:@"API"];
  NSString *jsonString = @"";
  NSData *myJSONData =[jsonString dataUsingEncoding:NSUTF8StringEncoding];
  NSMutableURLRequest *request = [[NSMutableURLRequest alloc] init];
  [request setURL:[NSURL URLWithString:urlString]];
  [request setHTTPMethod:@"POST"];
  NSMutableData *body = [NSMutableData data];
  [body appendData:[NSData dataWithData:myJSONData]];
  [request setHTTPBody:body];
  NSError *error;
  NSURLResponse *response;
  NSData *urlData=[NSURLConnection sendSynchronousRequest:request returningResponse:&amp;response error:&amp;error];
  NSString *str=[[NSString alloc]initWithData:urlData encoding:NSUTF8StringEncoding];
  if(str.length &gt; 0){
      NSData* data = [str dataUsingEncoding:NSUTF8StringEncoding];
      NSError *error;
      NSLog(@"%@", [NSJSONSerialization JSONObjectWithData:data options:kNilOptions error:&amp;error]);
      mainBannerArray =[NSJSONSerialization JSONObjectWithData:data options:NSJSONReadingAllowFragments error:nil];
  }
  else{
      NSLog(@"Error");
  }
  } 
  </code></pre>
  
  <p>Here is my Connection Delegate Methods.</p>
  
  <pre><code>-(void)connection:(NSURLConnection *)connection didReceiveResponse:(NSURLResponse *)response
  {
  myDataQA = [[NSMutableData alloc]init];
  }
  -(void)connection:(NSURLConnection *)connection didReceiveData:(NSData *)data
  {
  [myDataQA appendData:data];
  }
  -(void)connectionDidFinishLoading:(NSURLConnection *)connection
  {
  if ((NSNull *)myDataQA != [NSNull null])
  {
      if(myDataQA.length &gt; 0)
      {
          mainBannerArray =[NSJSONSerialization JSONObjectWithData:myDataQA options:NSJSONReadingAllowFragments error:nil];
      }
  }
  </code></pre>
  
  <p>My screen like this</p>
  
  <p><a href="https://i.stack.imgur.com/X02td.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/X02td.png" alt="enter image description here"></a></p>