Cause: UIView's Touch event was captured by Uiscrollview, so the touch event in UIView did not respond —————— workaround: Upload Uiscrollview captured touch events; ———— Add category to Uiscrollview: uiscrollview+uitouch.h
Code:
#import "UISCROLLVIEW+UITOUCH.H"
@implementation Uiscrollview (Uitouch)
-(void) Touchesbegan: (Nsset<uitouch *> *) touches withevent: (Uievent *) event
{
[Self Nextresponder] touchesbegan:touches withevent:event];
[Super Touchesbegan:touches Withevent:event];
}
-(void) touchesmoved: (Nsset<uitouch *> *) touches withevent: (Uievent *) event
{
[[Self nextresponder]touchesmoved:touches withevent:event];
[Super Touchesmoved:touches Withevent:event];
}
-(void) touchesended: (Nsset<uitouch *> *) touches withevent: (Uievent *) event
{
[[Self nextresponder]touchesended:touches withevent:event];
[Super Touchesended:touches Withevent:event];
}
@end
IOS Uiscrollview does not respond to the handling of Touchbegin events: