logo
logo
Sign in

iOS dev— import music from user’s device using document picker

avatar
Canopas
iOS dev— import music from user’s device using document picker

How to import music from device using document picker?


Here's the guide to how can we import local music from your iPhone or iPad’s file app into your iOS application.


Many times, as a developer we come across requirements where we want to add some music from your local music library instead of getting it from API.


By adding this media-picker view controller, your app allows users to choose music items from their Apple Music library without leaving your app. You can configure the media picker to accept single or multiple items from the user.


Now, note that we need to provide supporting music types to the picker as we have music with many mime types like MP3, AAC, ALAC, M4A, WAV, AIFF, etc.


Now if you click on add button, it will open the file app and will show all the music located on your phone. Now you can pick any music from these and do whatever you want with it as it provides a URL of that picked music.


Here's a step by step guide to learn how to import music from user device using document picker.

collect
0
avatar
Canopas
guide
Zupyak is the world’s largest content marketing community, with over 400 000 members and 3 million articles. Explore and get your content discovered.
Read more