mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2024-11-28 18:15:37 -05:00
Merge pull request #406 from yueyuzhao/issue/405-ios-warning
iOS: get rid of warnings Fix #405
This commit is contained in:
commit
6ccafdd9cc
2 changed files with 1 additions and 2 deletions
|
@ -63,7 +63,7 @@
|
||||||
[[NSURLCache sharedURLCache] removeAllCachedResponses];
|
[[NSURLCache sharedURLCache] removeAllCachedResponses];
|
||||||
}
|
}
|
||||||
|
|
||||||
- (BOOL) application:(UIApplication *)application openURL:(NSURL *) url sourceApplication:(NSString *) sourceApplication annotation:(id) annotation {
|
- (BOOL) application:(UIApplication *)app openURL:(NSURL *)url options:(NSDictionary<UIApplicationOpenURLOptionsKey,id> *)options {
|
||||||
if (url) {
|
if (url) {
|
||||||
NSLog(@"openg url: %@", url.absoluteURL);
|
NSLog(@"openg url: %@", url.absoluteURL);
|
||||||
[ScratchJr receiveProject:url];
|
[ScratchJr receiveProject:url];
|
||||||
|
|
|
@ -42,7 +42,6 @@ NSDate *startDate;
|
||||||
[self reload];
|
[self reload];
|
||||||
[self showSplash];
|
[self showSplash];
|
||||||
[IO init: self];
|
[IO init: self];
|
||||||
[[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO];
|
|
||||||
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
|
AVAudioSession *audioSession = [AVAudioSession sharedInstance];
|
||||||
[audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];
|
[audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:nil];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue