Search code examples
iosuiscrollview

Setting UIScrollView Background Image


I have a scrollview that takes up the full display size on a view. I want to set the background to a static image. I don't want to tile it, so I don't think I can use backgroundColor. Also, I don't really want it behind the scroll view (setting the scrollview to transparent) because I want bg to scroll with the scroll view.

Any help would be great. Thanks!


Solution

  • Just add a UIImageView that is the same size as the scroll view's content size