title: TableView data's are disappear while scrolling?
body: <p>I tried so many examples But doesn't works.Please check my code and give solutions.Thanks in advance.</p>
  
  <pre><code>- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath
  {
  
  static NSString *CellIdentifier = @"Cell";
  UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
  if (cell == nil) {
      cell = [[UITableViewCell alloc] initWithStyle:UITableViewCellStyleValue2 reuseIdentifier:CellIdentifier];
      }
  if (indexPath.section==0)
  {
      img=[UIButton buttonWithType:UIButtonTypeRoundedRect];
      img.frame=CGRectMake(25, 15, 75, 75);
      img.layer.cornerRadius=6.0;
      img.clipsToBounds=YES;
      img.layer.borderColor=[[UIColor grayColor]CGColor];
      [img setImage:[UIImage imageNamed:@""] forState:UIControlStateNormal];
      [cell.contentView addSubview:img];
  
  
      [img addTarget:self action:@selector(takePic:) forControlEvents:UIControlEventTouchDown];
      img.titleLabel.textColor=[UIColor blackColor];
      text=[[UITextField alloc]initWithFrame:CGRectMake(105, 30, 200, 30)];
      text.placeholder=@"Name";
      [text setBorderStyle:UITextBorderStyleRoundedRect];
      [cell addSubview:text];
      [cell addSubview:img];
      else if (indexPath.section==1)
  {
      UILabel *label=[[UILabel alloc]initWithFrame:CGRectMake(20, 15, 100, 20)];
      label.text=[dosageArray objectAtIndex:indexPath.row];
      label.backgroundColor=[UIColor clearColor];
      label.font=[UIFont boldSystemFontOfSize:15.0];
      label.textColor=[UIColor blackColor];
      [cell addSubview:label];
    return cell;
       }}
  </code></pre>
  
  <p>I have a three section in the tableview.In first Section I have a textfield and imageview If I scroll the textfield and imageview will disappear that is the problem</p>