开发者

implement UIScrollview on a particular area of screen?

开发者 https://www.devze.com 2023-01-07 20:21 出处:网络
i am creating an app which has two UIImageViews at top and bottom of the screen and few customs buttons in between them which i am using in a UIScrollview so that user can scroll through them while th

i am creating an app which has two UIImageViews at top and bottom of the screen and few customs buttons in between them which i am using in a UIScrollview so that user can scroll through them while the two images remain on top & bottom as they are.But when i use the scrollview the buttons scroll over the two UIimageview instead of just sc开发者_高级运维rolling between them or hiding behind them as users scroll down..how can i make the UIImagviews remain on top of the buttons in UIScrollview??


I assume that you use the Interface Builder...

Make sure that:

  • The frame of the scroll view is between the image view
  • The Clip subviews of the scroll view is checked
  • The image views appear after the scroll view in the views hierarchy (if not then you can just drag them inside the hierarchy)
0

精彩评论

暂无评论...
验证码 换一张
取 消