title: Add a new JSON Data on Tableview when it was scrolled in ios
body: <p>i make an application that use JSON data from web services.and also in my web services contain three page.when i add a data into tableview then it fill first page data when i scroll table view then it fill second page data but first page data was removed i want keep both page data. in the tableview i want to make a load more listview like as an android. please give me solution.i post my code here.</p>
  
  <pre><code>- (void)viewDidLoad {
      pageNum=0;
      NSURL * url=[NSURL URLWithString:[NSString stringWithFormat:@"http://www.truemanindiamagazine.com/webservice/news.php?page=%d",pageNum]];
      NSData * data=[NSData dataWithContentsOfURL:url];
  
      NSError * error;
      NSDictionary *json = [NSJSONSerialization JSONObjectWithData:data options: NSJSONReadingMutableContainers error: &amp;error];
      NSLog(@"%@",json);
      self.imagesa=[json objectForKey:@"data"];
      NSLog(@"images,%@",self.imagesa);
      [self.spinner startAnimating];
      [self.table reloadData];
  }
  
  -(void)fetchedData:(NSData *)responsedata {
      NSError* error;
      NSDictionary *json = [NSJSONSerialization JSONObjectWithData:responsedata options:kNilOptions error:&amp;error];
      self.imagesa=[json objectForKey:@"data"];
      [self.table reloadData];
      NSLog(@"images,%@",self.imagesa);
  }
  
  -(NSInteger)numberOfSectionsInTableView:(UITableView *)tableView {
      return 1;
  }
  
  -(NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
      return self.imagesa.count;
  }
  
  -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
      static NSString *cellidentifier=@"Cell";
      CustumCell *cell=[tableView dequeueReusableCellWithIdentifier:cellidentifier];
      cell.selectionStyle=UITableViewCellSelectionStyleNone;
      if (cell == nil)
      {
          NSArray *nib=[[NSBundle mainBundle]loadNibNamed:@"CustumCell" owner:self options:nil];
          cell=[nib objectAtIndex:0];
      }
  
      NSDictionary *dict = [self.imagesa objectAtIndex:indexPath.item];
      NSString *img2=[dict valueForKey:@"post_image"];
      [cell.photoimage sd_setImageWithURL:[NSURL URLWithString:[img2 stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]] placeholderImage:[UIImage imageNamed:@"Hisoka.jpg"] options:SDWebImageProgressiveDownload completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) {
          dispatch_async(dispatch_get_main_queue(), ^{
              NSLog(@"downloaded");
  
          });
      }];
      NSString *name=[dict valueForKey:@"post_title"];
      cell.namelabel.text=name;
      NSString *des=[dict valueForKey:@"post_content"];
      cell.deslabel.text=des;
  
  
      NSDateFormatter * dateFormatter = [[NSDateFormatter alloc]init];
      [dateFormatter setDateFormat:@"yyyy-MM-dd hh:mm:ss"];
      NSString *date=[dict valueForKey:@"post_date"];
      NSDate * dateNotFormatted = [dateFormatter dateFromString:date];
      [dateFormatter setDateFormat:@"d-MMM-YYYY"];
      NSString * dateFormatted = [dateFormatter stringFromDate:dateNotFormatted];
      NSLog(@"Date %@",dateFormatted);
      cell.datelabel.text=dateFormatted;
  
      [self.spinner stopAnimating];
      self.spinner.hidesWhenStopped=YES;
      return cell;
  }
  
  -(void)scrollViewDidScroll:(UIScrollView *)scrollView {
      pageNum=pageNum+1;
      NSLog(@"Page NUmber %d",pageNum);
      [self getData];
  }
  
  -(void)getData {
      NSURL * url=[NSURL URLWithString:[NSString stringWithFormat:@"http://www.truemanindiamagazine.com/webservice/news.php?page=%d",pageNum]];
      dispatch_async(kBgQueue, ^{
          jdata = [NSData dataWithContentsOfURL:url];
          [self performSelectorOnMainThread:@selector(fetchedData:) withObject:jdata waitUntilDone:YES];
      });
  }
  </code></pre>
  
  <p>Please give me solution as possible.</p>