viewDidLayoutSubviews equivalent for UITableViewCell

Viewed 1358

I'm trying to update my cell after it obtain the proper size. Is there any equivalent of viewDidLayoutSubviews for UITableViewCell ?

Currently I'm adding a 0.1 delay to update the cell, but I think there should be a better approach.

   double delayInSeconds = 0.1;
    dispatch_time_t popTime = dispatch_time(DISPATCH_TIME_NOW, (int64_t)(delayInSeconds * NSEC_PER_SEC));
    dispatch_after(popTime, dispatch_get_main_queue(), ^(void){
        [self layoutSubviews];
    });
1 Answers
Related