objective c - iOS UITableView header with sticky menu -


i want create uitableview collapsable view on top , sticky menu. show mean made 3 images:

state full expanded

state while scrolling down

state header collapsed

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

Popular posts from this blog

c++ - Difference between pre and post decrement in recursive function argument -

php - Nothing but 'run(); ' when browsing to my local project, how do I fix this? -

php - How can I echo out this array? -