iPhone xcode - Best way to control audio from several view controllers

Posted by Are Refsdal on Stack Overflow See other posts from Stack Overflow or by Are Refsdal
Published on 2010-05-15T20:52:05Z Indexed on 2010/05/15 20:54 UTC
Read the original article Hit count: 177

Filed under:
|
|
|
|

Hi,

I am pretty new to iPhone programming.

I have a navBar with three views. I need to control audio from all of the views. I only want one audio stream to play at a time. I was thinking that it would be smart to let my AppDelegate have an instance of my audioplaying class and let the three other views use that instance to control the audio. My problem is that I don´t know how my views can use the audioplaying class in my AppDelegate.

Is this the best approach and if so, how? Is there a better way?

© Stack Overflow or respective owner

Related posts about iphone

Related posts about xcode