我有一个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?