How can I nest a UIScrollView inside a UIScrollView, so that the user can scroll the inner UIScrollView?

前端 未结 4 1808
孤街浪徒
孤街浪徒 2021-01-05 05:42

I haven\'t tried that yet, but I assume that I would have to disable scrolling of the parent scroll view as soon as I know that the user will want to scroll in the child scr

4条回答
  •  心在旅途
    2021-01-05 05:57

    I did this and it does cause the parent scrollView NOT to scroll anymore which is fine but my child scrollView which was pushed via presentModalViewController still does not respond to scroll events (e.g. scrolling up or down). I'm obviously missing something...

    EDIT: Got it to work finally by using 'scrollEnabled' on the parent view. Thanks.

提交回复
热议问题