我有一個叫做Boards的類,它是UIView
的一個子類,我分配了一個實例並將它放到UIScrollView
中,我想代替他觸及UIScrollView
,但是轉到子視圖:Boards(UIView) ,我只是不知道如何將UIScrollView
的觸動傳遞給UIView
。爲什麼我的子類UIView沒有收到在UIScrollView中移動的觸摸?
P.S:我將手動更改UIScrollView
的contentOffset
,因此我不需要UIScrollView
中的觸摸,但是在UIView
中。
P.S:UIView的正在接收touchesEnded
和touchesBegan
事件,只是沒有touchesMoved
http://stackoverflow.com/questions/8485853/ios-5-uiscrollview-not-pass-touches-to-nextresponder而不是:[self.nextResponder touchesMoved:touches withEvent:event]; 使用:[[self.nextResponder nextResponder] touchesMoved:touches withEvent:event]; – jold 2013-02-27 11:44:58