Why won't UIScrollView scroll fully after adding objects? Using storyboard, ARC, and Xcode 4.5.2

前端 未结 3 1747
一生所求
一生所求 2020-12-29 14:52

So, I know there are similar questions to mine, but maybe not exact (so please don\'t mark me down -- just warn me or something). I have searched for days for the solution t

3条回答
  •  旧巷少年郎
    2020-12-29 15:36

    your scrollview's frame is not the scrollable size.

    Check out contentSize

    Set frame to its superview.bounds then set content size to the scroolview's scrollable area.

    Also I dont know that the background will scroll.

    You will want to add subview's to the scrollview itself.

    It should scroll its own subviews. but it will not scroll itself :)

提交回复
热议问题