0

I have a UIView with paging enabled.

I automaticly scroll to the next page:

[myView scrollToNextPage]

Now here I want the code to block until the next page is finished loading. scrollToNextPage calls a delegate method and I want to wait for it to finish before I keep going.

I'm not sure I want to use notifications because I don't want a notification every time the page is turned, just when I turn the page programaticly.

Thanks!

rmaddy
  • 314,917
  • 42
  • 532
  • 579
user714171
  • 363
  • 1
  • 3
  • 12
  • Just so to be clear, you call `scrollToNextPage` but you want to wait until it's loaded before actually scrolling to next page? Is the next page being loaded from web or do you just want to wait until perhaps the `UIView` is loaded? – Arash May 11 '14 at 18:44
  • The UIView is already loaded. There is a delegate method that responds to scrollToNextPage that updates the contents of the view. I want to wait for the delegate method to finish updating the view. Hope that's clear. Thanks! – user714171 May 11 '14 at 18:52

0 Answers0