我已经动态创建了一些图像视图。通过使用UISwipeGestureRecognizer,我能够获取开始卷帘的图像视图的起点或标签,但无法获取其结束标签或点。
请帮帮忙
提前谢谢。
发布于 2012-05-05 14:42:36
您可以使用touchesBegan、touchesMoved和touchesEnded方法查找卷帘的开始/结束位置。
使用下面的方法可能会对你有所帮助。
-(void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event
{
UITouch *touchendpoint = [touches anyObject];
CGPoint gestureEndPoint = [touchendpoint locationInView:self.view];
}希望,这会帮助你..
https://stackoverflow.com/questions/10459540
复制相似问题