2011-03-03 58 views
2
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的UIScrollView?

如何在UIView(本例中爲blueView)內啓動的觸摸滾動UIScrollView?

藍景是不是第一個響應,藍景的下一個響應者是滾動視圖等

似乎很基本的,但現在我卡住了一段時間。我錯過了什麼?謝謝。

回答

1

嘗試設置blueView.userInteractionEnabled = NO

相關問題