指定AudioSession后不要忘记设置cate
AVAudioSession *session = [AVAudioSession sharedInstance];
[session setCategory: AVAudioSessionCategoryPlayAndRecord error:nil];
[session setActive: YES error:nil];
指定AudioSession后不要忘记设置cate
AVAudioSession *session = [AVAudioSession sharedInstance];
[session setCategory: AVAudioSessionCategoryPlayAndRecord error:nil];
[session setActive: YES error:nil];