I am trying to connect a scroll view using Interface Builder, and the method UIScrollViewDelegate.scrollViewDidScrolldoes not start when scrolling.
In IB, I have a view controller that uses mine PagedScrollViewControlleras a custom class. In this class, I have:
class PagedScrollViewController: UIViewController, UIScrollViewDelegate {
func scrollViewDidScroll(scrollView: UIScrollView!) {
println("scrollViewDidScroll")
}
}
Unfortunately, this one printlnnever starts. I know that it PagedScrollViewControllerconnects correctly, because if I add a method viewDidLoadthat will be called. Is there anything extra I need to do to join the delegate other than setting up a custom class?
source
share