1

我正在创建一个滚动视图,在其中我有可拖动视图。问题是 scrollView 调用中视图的 touchBegan: 方法被延迟,如果移动很快完成,它们不会到达,谁能告诉我为什么?这是我的一些代码:

    //At the init method of my UIScrollView subclass
    self.canCancelContentTouches = NO;
    self.delaysContentTouches = NO;
    self.delegate = self;


    //At the init of the view in the content
    self.userInteractionEnabled = YES;
    self.multipleTouchEnabled = NO;
    self.exclusiveTouch = YES;

我试图删除层次结构的 UIScrollView 并将其替换为不滚动的当前视图,并且一切正常,所以我确定是 UIScrollView 引起了延迟。

还说我在 iOS 6 框架上编程

4

0 回答 0