我有一個UIViewController,頂上我把UIImageView,然後UIScrollView。iPhone:接觸UIViewController
我可以在UIScrollView上處理觸摸就好了,但是我想在UIViewController上處理某些觸摸。
我只需要觸及5秒鐘的UIScrollView(這部分工作正常)。小於我想傳遞給UIViewController的任何東西。
在UIScrollView的我稱之爲:
- (void) touchesBegan: (NSSet *) touches withEvent: (UIEvent *) event
{
// some custom code to process a specific touch.
// all other touches
[super touchesBegan: touches withEvent: event];
}
有沒有辦法從UIScrollView的接觸傳遞到底層的UIViewController,還是我要傳遞給一個的UIViewController引用到的UIScrollView?