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

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -