ios - UITableViewCell not animating content after reloadSections with animation -


i have uitableview 2 sections, first section have many controls , ok, on second section have lot of cells having contents of results.

when call realodsections in table view, after make fetches, expect when cell's appearing plays animation on label.

[self.tableview reloadsections:[nsindexset indexsetwithindex:1] withrowanimation:uitableviewrowanimationtop]; 

animating on:

- (uitableviewcell *)tableview:(uitableview *)tableview cellforrowatindexpath:(nsindexpath *)indexpath {  [...]  if (indexpath.row==0) {    [uiview animatewithduration:0.5 delay:1 options:uiviewanimationoptioncurveeaseinout animations:^{             cellbgview.layer.cornerradius = 5;             cellbgview.frame = frame; // new frame         } completion:nil];     } }   return cell; } 

resulting: animation happens after 3 or 2 calls of method reloadsections


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -