2
我繼承的UIWindow和創造的SendEvent的實現:如下:我如何可以傳遞的UIEvent到一個UIScrollView
- (void)sendEvent:(UIEvent *)event {
[super sendEvent:event];
// Send event to UIScrollView here
}
我怎樣才能將事件發送到一個UIScrollView。我嘗試過調用touchesBegan:等消息,但那沒有做任何事情。
你想做什麼不同於繼承的行爲? – NSResponder 2010-04-16 23:35:45
我需要在UIScrollView下獲取事件,因此我將UIScrollView上的userInteractionEnabled設置爲NO。然後,我想「複製」事件並將其傳遞給滾動視圖。 – rickharrison 2010-04-17 00:16:35