mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
Merge pull request #44 from tmickel/bugfix/ios-sound
Set AVAudioSession category on viewDidLoad #35
This commit is contained in:
commit
aaec2743ae
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ JSContext *js;
|
|||
[self showSplash];
|
||||
[IO init: self];
|
||||
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO];
|
||||
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
|
||||
[audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];
|
||||
}
|
||||
|
||||
- (void) showSplash {
|
||||
|
|
Loading…
Reference in a new issue