mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2025-02-26 22:45:13 -05:00
Set AVAudioSession category on viewDidLoad #35
This commit is contained in:
parent
6502ec4581
commit
ba3f7513d2
1 changed files with 2 additions and 0 deletions
|
@ -36,6 +36,8 @@ JSContext *js;
|
||||||
[self showSplash];
|
[self showSplash];
|
||||||
[IO init: self];
|
[IO init: self];
|
||||||
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO];
|
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO];
|
||||||
|
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
|
||||||
|
[audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (void) showSplash {
|
- (void) showSplash {
|
||||||
|
|
Loading…
Reference in a new issue