我用我的UIIimageview
-(IBAction)handlePanFrom:(UIPanGestureRecognizer *)recognizer
在我的代码中,我试图使用两个州:
if([recognizer state] == UIGestureRecognizerStateBegan)
{
NSLog(@"Began");
}
if([recognizer state] == UIGestureRecognizerStateEnded)
{
NSLog(@"End");
}
每次我开始移动 UIIMage View 时, 我都会看到“ Began” 讯息, 但没有任何“ 结束” 讯息...
我做错什么了?