-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touch = [touches anyObject];
NSLog(@"The tag %i",touch.view.tag);
if( [touch.view isKindOfClass:[UIScrollView class]] ) {
for( UIView *checkview in [self.view subviews] ) {
if( [checkview tag] == 1 ) {
infoIsVisibile = NO;
[info removeFromSuperview];
}
}
}
[super touchesBegan:touches withEvent:event];
}
誰かが私を助けてくれますか?これはサブビュー内のタッチのみを検出し、メインビューは検出しません。