4

I am having difficulty understanding conceptually the best way of implementing the following:

I have a UIScrollview embedded within ViewControllerB that has been presented by ViewControllerA.

Once the user has scrolled to the top of the UIScrollview, when he attempts to pull down more when there is nothing further to scroll, I want this "dragging" motion to pull down and dismiss the current ViewControllerB, leaving ViewControllerA on display.

How can I trigger that interactive transition of panning down ViewControllerB from within the UIScrollView's dragging mechanism once reaching the top?

cohen72
  • 2,830
  • 29
  • 44

1 Answers1

-1

As far as i have understood your problem, you can go through these steps

  1. check if the content offset of the scrollview contains the point 0,0 , which means the scrollview has already reached the top

  2. dismiss the viewControllerB with animation Yes

Maniac One
  • 589
  • 4
  • 23