I am Developing an app. I have some data which is coming from server.
Now I Have no Idea about the data count for rows. I only Know the name of Fields.
I want To show these data in UITableViewCell.
I have a custom TableCell. I have taken a ContentView inside it.
I have set the following constraint:
     - Leading
     - Trailing 
     - Top
     - Bottom
 In My
In My ViewController's DidLoad Method I have this Code:
    UINib *nib = [UINib nibWithNibName:cellName bundle:nil];
   [[self mTableView] registerNib:nib forCellReuseIdentifier:cellName];
     self.mTableView.rowHeight = UITableViewAutomaticDimension;
    self.mTableView.estimatedRowHeight = 100.0;
I am creating UILabel Like this
      - (void)awakeFromNib {
[super awakeFromNib];
CGFloat ypos = 0;
for(int i=0;i<6;i++)
{
    UILabel *lbl  = [[UILabel alloc]init];
    lbl.backgroundColor= [UIColor redColor];
    lbl.frame = CGRectMake(0,ypos,30,10);
    [self addSubview:lbl];
    ypos += 16;
}
[self setNeedsLayout];
[self layoutIfNeeded];
// Initialization code
}
This is my CustomCell.But my TableCell Hegiht is not Increasing.
Please anyone suggest me what is i am missing ?
 
     
    