iPhone处理用户的刷卡

iPhone处理用户的刷卡,iphone,objective-c,xcode,swipe,iphone-sdk-4.1,Iphone,Objective C,Xcode,Swipe,Iphone Sdk 4.1,这里有一个简单的问题:当我的用户在iPhone屏幕上滑动手指时,我如何检测?UIGestureRecognitor就是您想要的。特别是UIWipegestureRecognitizer子类,UIGegestureRecognitizer就是您想要的。尤其是UISweepGestureRecognitzer子类,您需要在应用程序中实现手势识别器 在您的界面中: #define kMinimumGestureLength 30 #define kMaximumVariance 5 #impor

这里有一个简单的问题:当我的用户在iPhone屏幕上滑动手指时,我如何检测?

UIGestureRecognitor就是您想要的。特别是UIWipegestureRecognitizer子类,UIGegestureRecognitizer就是您想要的。尤其是UISweepGestureRecognitzer子类,您需要在应用程序中实现手势识别器

在您的界面中:

#define kMinimumGestureLength  30
#define kMaximumVariance   5
#import <UIKit/UIKit.h>
@interface *yourView* : UIViewController {
    CGPoint gestureStartPoint;
}
@end
这是实现刷卡识别器的一种方法。此外,您确实应该查看有关此主题的文档:


您需要在应用程序中实现手势识别器

在您的界面中:

#define kMinimumGestureLength  30
#define kMaximumVariance   5
#import <UIKit/UIKit.h>
@interface *yourView* : UIViewController {
    CGPoint gestureStartPoint;
}
@end
这是实现刷卡识别器的一种方法。此外,您确实应该查看有关此主题的文档:


啊,我能回答我自己的问题:


谢谢大家的帮助

啊,我能回答我自己的问题:


谢谢大家的帮助

你没有解释kMinimumVariance,你没有解释kMinimumVariance。