iphone - How to animate UITableView header view -
i need animate insertion of tableview header view. want table rows slide down while header view expands frame.
far best result got using following code:
[self.tableview beginupdates]; [self.tableview settableheaderview:self.someheaderview]; [self.tableview endupdates];
the problem solution header doesn't animated, frame doesn't expand.
so effect i'm getting table rows slide down (as want) header view shown, , want expand it's frame animation.
any ideas?
thanks.
have header frame @ cgrectzero
, set frame using animation
[self.tableview beginupdates]; [self.tableview settableheaderview:self.someheaderview]; [uiview animatewithduration:.5f animations:^{ cgrect theframe = somebigger.frame; someheaderview.frame = theframe; }]; [self.tableview endupdates];
Comments
Post a Comment