Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

lynkynpark86

macrumors 6502
Original poster
For experimental purposes, I want to make a music app with one song that plays in the background. I already know how to do the music part, but not the background part. According to apple, "You can add (background audio) with just a few lines of code". If anyone knows where I can find out how to do this, it would be helpful. Thanks!
 
For experimental purposes, I want to make a music app with one song that plays in the background. I already know how to do the music part, but not the background part. According to apple, "You can add (background audio) with just a few lines of code". If anyone knows where I can find out how to do this, it would be helpful. Thanks!

All you do is set the background mode to 'audio' in the Info.plist to play background audio. That's it. No special coding required.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.