早安用户,
我已经实现了以下委托方法:
- (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 {
但它永远不会进入第二个如果,有人知道为什么会这样吗?
问候并感谢大家事先提供的帮助