你好,我是iphone开发的新手,
我对此有一些疑问,我知道我接近但我不知道我错在哪里,任何人都可以告诉我哪里错了。
以下是我的视图中的滑动手势代码。
UISwipeGestureRecognizer* gestureR;
gestureR = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipe:)] autorelease];
gestureR.direction = UISwipeGestureRecognizerDirectionLeft;
what next in this ...
我是iPhone的新手?
答案 0 :(得分:1)
UISwipeGestureRecognizer* gestureR;
gestureR = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipe:)] autorelease];
gestureR.direction = UISwipeGestureRecognizerDirectionLeft;
[viewOne addGestureRecognizer:gestureR];
是另一条线
[gestureR release];