2016年3月30日に京都で開催された 関西モバイルアプリ研究会 #12 で、iOS 9.3 に追加された、Apple Music 関連のAPIについて紹介しました。 Apple Music は月額料金を払えば、ストリーミングで音楽を聴きまくれる最高のサービスなので、使ってない人はいますぐ契約しましょう。 今回の更新で主に以下のようなことが出来るようになりました。 SKCloudServiceController Apple Music へのアクセス権限の確認 Apple Music へのアクセス権限の取得 再生、またはライブラリの追加が可能かどうかの確認 ユーザーがApple Musicを契約している国のStorefront IDの取得 MPMusicPlayerController Apple Music の曲を再生する MPMediaLibrary / MPMediaPlaylist
![いま聴いている曲の iTunes Store での trackId を取得する旅 - ちなみに](https://cdn-ak-scissors.b.st-hatena.com/image/square/e9afa29c219249aee3793ba56256c1c22c89c493/height=288;version=1;width=512/http%3A%2F%2Fcdn-ak.f.st-hatena.com%2Fimages%2Ffotolife%2FS%2FSixeight%2F20160419%2F20160419034911.png)