For some reason my UIButton requires two taps to trigger and I don't understand why, this is not the desired functionality and all of my other buttons work as expected
Here is the addTarget
code:
[self.myButton addTarget:self action:@selector(publishButtonTapped) forControlEvents:UIControlEventTouchUpInside];
My function publishButtonTapped
is not triggered until the second tap in quick succession.
There must be something else I am overlooking, so any insight appreciated
My button and layout is created programmatically, so there is no XIB or storyboard.