objective c - iOS UITableView header with sticky menu -
i want create uitableview
collapsable view on top , sticky menu. show mean made 3 images:
i thought make uitableviewcontroller
, place view above table dont know how implement sticky menu.
whats best way accomplish that?
don't use uitableviewcontroller
, won't able add besides table view.
you should use standard uiviewcontroller
, top view housing sticky menu, , uitableview
below it.
you can open/close menu using autolayout: sticky menu has "fixed height" constraint, , table view has no "top" constraint, "vertical spacing" constraint between sticky menu , itself.
just animate constant "height" constraint of menu have collapse/expand animation.
Comments
Post a Comment