Color / image behind a view with elastic scrolling?
-
13-12-2019 - |
Question
How can I set the image "behind" the view when elastic scrolling kicks in?
By default it's just white, I'd like to set it to a color or an image- like how Safari has linen behind its' WebView and so on.
Solution
The way I'm currently doing this in my app is just by adding a big UIImageView
behind the scroll view in my view controller.
I spent a while messing around with the background image property on table views and stuff but I encountered a lot of weirdness when I changed the contentInset
/contentOffset
if I did it that way.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow