IBAction UIButton firing is delayed

ibaction, ios, sdk, uibutton

Solution

In the end, I added somewhere some UIGestureRecognizer, and forgot to set delaysTouchesBegan to NO =(

Problem

I have a UIButton connected to an IBAction in Interface Builder. The Problem: - The action firing and the de-highlight of the button both take a little bit to happen. The Facts: - View structure: - View - 10 Buttons (connected via UIControlEventTouchUpInside to the IBAction - View (Subview) - Gesture recognizer - Text Field - The Subview has a UITapGestureRecognizer, which delaysTouchesBegan and delaysTouchesEnded both are set to NO - The action is happening in the main thread. - Testing a simple button (with no images or title, and only a simple NSLog), the result is the same The Question: Why are firing and the de-highlight delayed?

Original source

Related problems