I need to add AVAudioPlayer Framework in project but don't find it.Is it deprecated in iOS 6? If yes then what i m supposed to use to play audio file mp3. Will mediaplayer framework will work to play audiofile mp3.
Asked
Active
Viewed 2,164 times
1 Answers
6
AVAudioPlayer Framework
No-no. AVAudioPlayer is a class, not a framework. If you're intending to use this class, you have to link to the AVFoundation framework - in case you're using Xcode, you can add this framework on the "build phases" tab in the "link with libraries" section.
-
added avfoundation framework to my app and in properties added @property (nonatomic, retain)avaudioplayer *audioplayer; but message says unknown type name avaudioplayer – user1452248 Dec 09 '12 at 21:46
-
1@user1452248 Do you have `#import
` at the top of your header file? – Dec 09 '12 at 21:52 -
How can i forget to add that. Thanks. Some times you miss to figure little mistake. Appreciate your help so much. – user1452248 Dec 09 '12 at 21:54