【发布时间】:2014-05-28 05:33:15
【问题描述】:
code:
lblQuestion = [[UILabel alloc]initWithFrame:CGRectMake(23, intQuesPos, 280, 100)];
lblQuestion.numberOfLines = 0;
UISwipeGestureRecognizer *topGesture = [[UISwipeGestureRecognizer alloc]initWithTarget:self action:@selector(swipeToptoBottom)];
[topGesture setDirection:UISwipeGestureRecognizerDirectionDown];
[lblQuestion addGestureRecognizer:topGesture];
[scrollQuestion addSubview:lblQuestion];
[vwQuestion addSubview:scrollQuestion];
我在UIScrollView 中有UILabel,我将UISwipegesture 添加到UILabel。当我向下滑动时只检测到UISCrollView。
任何帮助将不胜感激。
提前致谢
【问题讨论】:
标签: ios xcode uiscrollview uiswipegesturerecognizer