Add a Category and then import the header file into the file using the Uiscrollview, you can
//
Uiscrollview+uitouch.m
Alarm
//
Created by Zhuang Chaoxiao on 15-6-16.
Copyright (c) year Zhuang Chaoxiao. All rights reserved.
//
#import "UISCROLLVIEW+UITOUCH.H"
@implementation Uiscrollview (Uitouch)
-(void) Touchesbegan: (nsset *) touches withevent: (uievent *) event {
[Self nextresponder] Touchesbegan: Touches withevent: event];
[Super Touchesbegan:touches Withevent:event];
}
-(void) touchesmoved: (nsset *) touches withevent: (uievent *) event {
[Self nextresponder] touchesmoved: Touches withevent: event];
[Super Touchesmoved:touches Withevent:event];
}
-(void) touchesended: (nsset *) touches withevent: (uievent *) event {
[Self nextresponder] touchesended: Touches withevent: event];
[Super Touchesended:touches Withevent:event];
}
@end
An issue with touch not responding in IOS Uiscrollview