0

早安用户,

我已经实现了以下委托方法:

- (void)openFlowView:(AFOpenFlowView *)openFlowView doubleTapOnIndex:(int)index itemView:(AFItemView *)itemView{
    NSLog(@"Der Touch geht!!!!!");
}

并且应该提示并调用该方法:

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
    UITouch *touch = [[event allTouches] anyObject]; 
    if ([touch tapCount] == 2) {
        if ([self.viewDelegate respondsToSelector:@selector(openFlowView:doubleTapOnIndex:itemView:)])
            [self.viewDelegate openFlowView:self doubleTapOnIndex:selectedCoverView.number itemView:selectedCoverView];
        }
    else {

但它永远不会进入第二个如果,有人知道为什么会这样吗?

问候并感谢大家事先提供的帮助

4

2 回答 2

1

“self.viewDelegate”类是您添加委托方法的类吗?

于 2010-10-21T07:26:56.723 回答
0

您是否在头文件中包含方法声明?

于 2010-10-21T07:26:41.607 回答