I've been building iOS Music application and I'm using MPMusicPlayerController.systemMusicPlayer() to play music from the iTunes library of the device.
I tried applicationWillTerminate to stop the music player, and It didn't work, after doing some research that I found out After iOS 4 applicationWillTerminate method will *almost never get called, and we must do all the work in applicationDidEnterBackground method.
But my point is, I want my Music player to keep playing music when it enters to the background, and only stop the music when user force quit the application, How can I achieve this behavior ?