标签:
[[UIDevice currentDevice] setProximityMonitoringEnabled:YES];
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
//默认情况下扬声器播放
[audioSession setCategory:AVAudioSessionCategoryPlayback withOptions:AVAudioSessionCategoryOptionMixWithOthers error:nil];
[audioSession setActive:YES error:nil];
标签:
原文地址:http://www.cnblogs.com/lgh344902118/p/6898538.html