objective c - making a button pause and play a sound code error -
-(ibaction)pause { if ([theaudio ispaused]) { [theaudio play]; else { [theaudio pause]; } } }
i have no property ispaused in .h maybe why. ispaused turns purple anyways. if need property please provide me 1 im new c
the else inside if. should be:
if ([theaudio ispaused]) { [theaudio play]; } else { [theaudio pause]; }
Comments
Post a Comment