Subclass UIScrollView in Swift for touches Began & touches Moved
问题 I'm using Swift 1.2 I'm trying to use this UIScrollview touchesbegan,touchesmoved,touchesended actions and the link in the 2nd comment of the accepted answer. I'm using a storyboard with auto layout, I set my custom class for the UIScrollView in Custom Class. I'm not receiving either of these touch events in the UIViewController that contains my custom UIScrollView Edit: Updated my code for how I use it with @Victor Sigler 's answer. Custom ScrollView Code: import UIKit protocol