UIView * blueView = [[UIView alloc] initWithFrame:CGRectMake(10, 10, 100, 100)];
blueView.backgroundColor = [UIColor blueColor];
[scrollView addSubview:blueView];
scrollView.contentSize = CGSizeMake(1500, 2000);我可以很好地在大多数scrollView中拖拽滚动,但在blueView中当触摸开始时拖拽就不起作用了。
在UIView (本例中为blueView)中开始的触摸如何滚动UIScrollView?
blueView不是第一响应者,blueView的下一个响应者是scrollView,等等。
看起来很简单,但我现在被卡住了一段时间。我遗漏了什么?谢谢。
发布于 2011-03-04 03:21:58
尝试设置blueView.userInteractionEnabled = NO。
https://stackoverflow.com/questions/5185383
复制相似问题