views:

116

answers:

1

I am subclassing UIWindow and creating an implementation of sendEvent: as follows:

- (void)sendEvent:(UIEvent *)event {
    [super sendEvent:event];

    // Send event to UIScrollView here
}

How can I send the event to a UIScrollView. I tried calling the touchesBegan:, etc. messages, but that did not do anything.

A: 

You might be able to do it the other way round. Intercept the event, then have your scrollview get the event. Take a look at EventInterceptWindowDelegate.

I'm using it to effectively split the touch down event at the Window level and sending a copy to both to my UITableViewController and the Scrollview. Not perfect, but I haven't cracked the 'copy the event' nut either.

You'll need to turn user interaction back on for the scrollview if you go this route.

Oldmicah