简体   繁体   中英

How do you keep the UIImageView “full screen” on iPhone while scrolling up/down the uiscrollview

Basically what I am trying to do is keep a "full screen" sized image view that I have in a scroll view on the iphone stay like that while the user is scrolling.

for example:

I set the image view to the size of the iphone using bounds so lets say the height of the imageview/iphone screen is 300. but the height/length of the scroll view is 1000. obviously when the user scrolls down it passes the bottom of the image and now the image is no longer the background.

how do I move the imageview to keep up with the user scrolling so that it shows as a still background in thier eyes?

为什么不只使滚动视图透明并在其后面设置图像视图?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM