UIScrollView scroll not working after pushed with a navigation controller

前端 未结 2 1926
心在旅途
心在旅途 2021-01-22 09:12

I\'m having an odd problem. I have a UIScrollView in a part of view hierarchy. It\'s working just fine when the view is presented via UITabBarController, but doesn\'t work at al

2条回答
  •  情书的邮戳
    2021-01-22 09:28

    If you resize the scroll view content size in the viewDidLayoutSubview function it will work again.

    - (void) viewDidLayoutSubviews {
        [self resizeScrollViewContent];
    }
    

    and
    here same question

提交回复
热议问题