1)
<key>UIBackgroundModes</key>
<array>
<string>audio</string>
</array>
2)
NSError *setCategoryErr = nil;
NSError *activationErr = nil;
[[AVAudioSession sharedInstance] setCategory: AVAudioSessionCategoryPlaybackerror:&setCategoryErr];
[[AVAudioSession sharedInstance] setActive:YESerror:&activationErr];