objective c - Overlapping table cells animation -
i made table custom cells. every cell i've created animation move current clicked cell up. problem in current animated cell has example index row 2 , goes parent cell index 1.
i'd animated cell in front of parent. if scroll table down more 480px size of iphone screen , click again same cell index row 2 cell fine overlap parent cell. problem shown in picture below.
you need cell , bring front in view hierarchy. however, getting cell not obvious: can't call tableview:cellforrowatindexpath:
in controller because dequeue or create new cell. need instead call cellforrowatindexpath:
on table view , bring front before start animation.
uiview* thecell = [tableview cellforrowatindexpath:someindexpath]; [thecell.superview bringsubviewtofront:thecell];
you can safely cells want animate, because returns nil
if not visible on screen.
Comments
Post a Comment