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

java - Checkbox item adds to spinner -

php - mySQL problems with this code? -

C# MVC AngularJS -