UIButtons at the bottom of UIScrollView not working

后端 未结 6 767
囚心锁ツ
囚心锁ツ 2020-12-29 05:02

I created a UIScrollView in my storyboards and have added 12 UIButtons in a container View which is inside the UIScrollView.

when running on the iPhone 5s simulator,

6条回答
  •  失恋的感觉
    2020-12-29 05:37

    It seems you need to increase the frame height of container view. The contentSize of scrollView only affects how it will scroll, which is irrelevant here.

    If the button is outside the container view, it will still show up. However, it can't respond to any touch event.

提交回复
热议问题