Access IOS music´s library


I was wondering if you guys could help me. I need to make an app that has access to user music´s library and export one of the music in there to whatsapp or any other message app.Does anyone know how I can do this or where I can get some examples of how to do this?

thank you very much