开发者

How to start and stop songs programmatically? [duplicate]

This question already has answers here: Closed 11 years ago.

Possible Duplicate:

How to play a so开发者_开发问答ng from the itunes library in iphone

In my app,

I want to fetch songs from iPhone Library.

And want to play that song.

How do I fetch song?

And How to start and stop songs programmatically in my app?


  AVAudioPlayer *player = [[AVAudioPlayer alloc] initWithContentsOfURL:[NSURL URLWithString:recordFile] error:nil];
            [player prepareToPlay];
   [player play];

    [player pause];
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜