English 中文(简体)
UIGesture Recognizers notchloro tap
原标题:UIGestureRecognizer not consuming taps

我有一位国际律师,我补充了主要观点。 主要看法是UIGestureRecogniser,每个次调查也有一个UIGesture Recognizer。 在接口建设商中,我对属地检查员进行了检查,因此,我期望在次表上只焚烧我的姿态“RecognizerShouldBegin”,但是,他们也向手下的人开枪。

是否有人想为什么会发生这种情况?

我猜测,我可以处理每一次调查所附的GestureRecogniser的特殊情况,并比较所发射事件是否来自正确的承认者,但这似乎并不像正确的解决办法。 任何帮助都将经过大量评估。

Edit: 第二种解决办法甚至似乎都像每个符合目前姿态的UIGestureRecogniser正在被发射!

Edit: The best solution I have come up with is,

  • (BOOL)gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch{ if([view isEqual:[touch view]] && self.editing) return YES;

    return NO; }

我希望,Gesture公司根本不会接受触动。

问题回答

暂无回答




相关问题
New Notification Center

Is there a way to show a notification in the notification center without having push notifications enabled? For example if an email fails to send is there a way i can create a string and display it in ...

submit an ios app using ios5 OS and ios5 sdk

I m wondering if I can install IOS 5 and the IOS 5 SDK and still be able to develop and submit apps to Apple? Or once I install IOS 5 I m forced to install the IOS5 SDK (from what I understand I can t ...

What s new for web developers in iOS 5 Safari?

From the Apple WWDC we have learned that iOS Safari 5 has tabs, and the new Reader and Reading List functionality. None of which is particularly informative for web developers. What are the new ...

iOS - AudioSession Cateogry for AudioUnit Application

I am working on streaming audio player application for iOS. currently i am experimenting with AudioQueue and AudioUnit for playback. Both works fine in the normal condition. But I am facing an issue ...

Couldn t register with the bootstrap Server

I just changed some code in my program and got this error: Couldn t register com.yourcompany.XXX with the bootstrap server. Error: unknown error code. This generally means that another ...

Unable to manage orientation with multiple view controllers

I m trying to build an iPhone application that has two subviews in the main window. Each view has its own UIViewController subclass associated with it. Also, within each controller s implementation, I ...

热门标签