objective c - How to make a uibutton with touch down action and touch up inside action -


i need make 1 button 2 actions, touch down used play sound , touch inside stop playing sound when let go of button

connect 2 methods both these actions.

[self.yourbtn addtarget:self action:@selector(touchdownmethod:) forcontrolevents:uicontroleventtouchdown]; [self.yourbtn addtarget:self action:@selector(touchupinsidemethod:) forcontrolevents:uicontroleventtouchupinside]; 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -