Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

arnieterm

macrumors regular
Original poster
Aug 28, 2008
201
0
I have an application with nested scrollviews. I have to handle swipes in the inner scrollview.Does i need to subclass UIScrollView in order to do this and implement the below given methods?


Code:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
	
}

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{
	NSLog(@"Moved    %@",touches);
}

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{
	NSLog(@"Ended    %@",touches);
}

- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event{
	
}

Is there any other way to handle this? I do not want to subclass the UIScrollVIew
Thanks
Arnieterm
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.