I am trying to make an app that reads calendar events, and makes a list of meetings in Swift 2. I need to make it look like this:
The top part is always visible. The list will be scrollable, and the list will load different data when user clicks on a different day. Also the days in the top bar need to adjust when user scrolls to the end of the day, and continues scrolling (days must shift one step further). I try to do this with Navigation Controller with the navigation bar.
Is this the right way to do it?
A nice approach would be to use just a separate "container" view, which holds the buttons, and have the scroll view on the same level as this "container". This way the view will on top will not scroll.
Regarding the changing of the top buttons based on the scroll - you can use the UIScrollViewDelegate
to get the exact position. Since I do not know the exact scenario, I cannot advise what is the best way to determine the day based on the scroll position.