实现音乐的后台播放首先要在AppDelegatede的
- (void)applicationDidEnterBackground:(UIApplication *)application 方法中调用
//开始后台任务程序保持运行状态
[application beginBackgroundTaskWithExpirationHandler:nil];
然后需要在工程的配置文件中添加属性
Required background modes 根据不同的需求配置相应的模式
App plays audio or streams audio/video using AirPlay