objective c - iOS - UIButton requires two taps with UIControlEventTouchUpInside -


for reason uibutton requires 2 taps trigger , don't understand why, not desired functionality , of other buttons work expected

here addtarget code:

[self.mybutton addtarget:self action:@selector(publishbuttontapped) forcontrolevents:uicontroleventtouchupinside]; 

my function publishbuttontapped not triggered until second tap in quick succession.

there must else overlooking, insight appreciated

my button , layout created programmatically, there no xib or storyboard.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -