Why is UIScrollView leaving space on top and does not scroll to the bottom

后端 未结 13 2741
眼角桃花
眼角桃花 2020-12-01 09:15

I am new to objective-C programming.

I am using UIScrollView with some labels, image and text view on it.

I have turned off Autolayout and already tried wit

13条回答
  •  再見小時候
    2020-12-01 09:40

    I did below, my problem solved

    changing UIScrollView Content Insets property in from Automatic to Never and Adding below code in viewDidLoad()

    scroller.contentInset = UIEdgeInsetsZero;
    scroller.scrollIndicatorInsets = UIEdgeInsetsZero;
    scroller.contentOffset = CGPointMake(0.0, 0.0);`
    

提交回复
热议问题