So, how would I make a sound file play and loop only while a certain button is held in (iOS) ? I would also need it to stop when the button was let go? I have tried searching google and have only found forums with people asking but no real answers on how to do it.
Share
use a buttons control events touchdown, touchupinside and touchupoutside:
edit:
realized your question may have been more about playing sound files?!
there’s different frameworks, you could use AVAudioPlayer:
import framework and define a player
create your ibactions for buttons in the main file:
and