2011-01-31 71 views

回答

5

如果你需要觸摸穿過去,落實的UIScrollView的子類,並添加這些:

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event 
{  
    // Pass to parent 
    [super touchesBegan:touches withEvent:event]; 
    [self.nextResponder touchesBegan:touches withEvent:event]; 
} 

- (void)touchesEnded:(NSSet *)touches withEvent:(UIEvent *)event 
{ 
    // Pass to parent 
    [super touchesEnded:touches withEvent:event]; 
    [self.nextResponder touchesEnded:touches withEvent:event]; 
} 

細胞只interecepts水龍頭,所以它會工作。

+0

您的解決方案剛剛拯救了我的一天!謝謝! – 2012-10-24 13:26:26

0

這太棒了!我在這個上拉我的頭髮。