开发者

Why does UIScrollView cancel my touches on the iPad, but not on the iPhone? [closed]

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center. Closed 10 years ago.

I have an UIScrollView subclass where I implement all of those 4 touch event handling methods like -touchesBegan:withEvent:, etc.

On the iPhone, the tracking works fine. I get plenty of -touchesMoved:withEvent: calls while the finger moves along the scroll view.

I've set the self.canCancelContentTouches = NO;. I've also overwritten this:

- (BOOL)touchesShouldCancelInContentView:(UIView *)view {
    return NO;
}

After dragging about 5 points or so, it already cancels the touches. Always. I have nothing else than this UIScrollView in my view hierarchy. I can start dragging anywhere I want. After about 5 points开发者_开发百科 touches get cancelled. Always. Anywhere.

And the strange thing: Only happens on the iPad, but not on the iPhone or iPod touch. A bug in UIScrollView?


What version of iOS is on the your phone?

The iPad is still back at 3.2.x, so there might be lots of things fixed already in subsequent phone releases that haven't made their way to the iPad yet...

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜