A list with a fixed title bounce effect, such as the App Store

I want to make a UITableView with a fixed title, like the App Store, with a bounce effect under the title:

App Store GIF

I tried UIScrollView with UITableView with scrollEnabled NO . Does not work; he did not bounce below the header:

enter image description here

My opinion: enter image description here

+1
source share
1 answer

I finally found one solution. I basically created a UITableView and a title, both with a clear background color. Then I add a new view (with the same height as the tableView header), between the controller view and the tableView at the top. This new view is the title. Then I use the scrollViewDidScroll function to control the position of the view, which mimics the title. That way I could achieve a rebound in the View table under the heading

I gave an example, you can download it here

0
source

All Articles