Iphone 在我的当前视图中添加手势

Iphone 在我的当前视图中添加手势,iphone,objective-c,Iphone,Objective C,你好,我是iphone开发的新手 我对此有些怀疑,我知道我离ans很近,但我不知道我错在哪里。请告诉我错在哪里 这是我的代码,用于将手势滑动到我的视图 UISwipeGestureRecognizer* gestureR; gestureR = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipe:)] autorelease]; gestureR.direction = UISwipeGest

你好,我是iphone开发的新手

我对此有些怀疑,我知道我离ans很近,但我不知道我错在哪里。请告诉我错在哪里

这是我的代码,用于将手势滑动到我的视图

UISwipeGestureRecognizer* gestureR;
gestureR = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipe:)] autorelease];
gestureR.direction = UISwipeGestureRecognizerDirectionLeft;

what next in this ... 
我对iPhone还不熟悉

UISwipeGestureRecognizer* gestureR; 
gestureR = [[[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(swipe:)] autorelease]; 
gestureR.direction = UISwipeGestureRecognizerDirectionLeft; 
[viewOne addGestureRecognizer:gestureR];
是的,再来一行

[手势释放]

是的,再来一行


[手势释放]

请使用适当的标志设置问题的格式(即,为了提高可读性,代码必须标记为代码)。@valvoline,您也可以建议编辑此问题。然后,具有足够权限的人员将批准/拒绝该问题。请使用适当的标志设置问题的格式(即,为了提高可读性,必须将代码标记为代码)。@valvoline,您也可以建议对该问题进行编辑。然后有足够权限的人将批准/拒绝它。