[Solved] Dynamic UITableViewCell


for you. Make cell just the top of your. For example the name and the text. And for bottom view. Make a separate xib file and add that xib file in layoutsubviws or while setting data to the cell. And loop upto number of items you have and add subview to cell in loop. it’s a brief text hope you will understand this. If not, lemme know I’ll explain it more.

@implementation CustomTableViewCell

.
.
.
- (void)resetCell
{
.
.
.
}


- (void)setItem:(Item *)item 
{
    float y = 20;//starting y
    for (int i =0; i < item.videoCount ; i++)
    {
         UIView *view = //init view with y position here
         // configure your view here
         //update y to to y = y + 10 /*margin space between views*/ + view.frame.size.height;
    }
}


@end

6

solved Dynamic UITableViewCell