Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
アプリケーションで MPMusicPlayerController を使用して音楽を再生する方法を教えてください。
誰の助けも大歓迎です。
ありがとう、モニッシュ。
MPMediaPickerControlleriPod から音楽を選択できるように を作成し、mediaPicker:didPickMediaItems:コールバックで次のようにします。
MPMediaPickerController
mediaPicker:didPickMediaItems:
MPMusicPlayerController* playa; playa = [MPMusicPlayerController applicationMusicPlayer]; [playa setQueueWithItemCollection:mediaItemCollection]; [playa play];