Add a hidden view above a UITableView that is only displayed when TableView is scrolled up
- by noncogitas
Goal/Situation: I currently have a UIView in the TableView header. I am trying to add another UIView (which contains two Buttons and a few TextFields) that will sit above the TableView header. I would like the view to be displayed when the user scrolls up past the header (a la "pull to refresh"), and go away when the user presses a "done" button on the view.
My two questions:
1) How do I add a view above the tableview header?
2) How do I display said view when a user has scrolled up past the header?
3) How do I dismiss said view when the user has pressed a button on said view?