Best way to implement audio playback on iPad
Should I used AVPlayer or MovieController?
I have tried using AVPlayer but I cannot reference it even though I added AVFoundation as a framework to my target.
EDIT: I have added the AVFoundation.framework to my 'frameworks' folder. Then at the top of my header file I am trying to reference the correct framework so that I can开发者_StackOverflow中文版 use AVPlayer
AVPlayer is what you need. Did you import AVFoundation in your file?
#import <AVFoundation/AVFoundation.h>
精彩评论