From c5f43b61524efb362a07dc42be9f8002eebf2abf Mon Sep 17 00:00:00 2001 From: Yueyu Date: Thu, 15 Apr 2021 06:53:27 +0800 Subject: [PATCH] iOS: get rid of warnings Fix #405 --- ios/ScratchJr/src/AppDelegate.m | 2 +- ios/ScratchJr/src/ViewController.m | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/ios/ScratchJr/src/AppDelegate.m b/ios/ScratchJr/src/AppDelegate.m index 59e0900..dd18975 100644 --- a/ios/ScratchJr/src/AppDelegate.m +++ b/ios/ScratchJr/src/AppDelegate.m @@ -63,7 +63,7 @@ [[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 *)options { if (url) { NSString *str = [IO encodeBase64: [[NSData alloc] initWithContentsOfURL:url]]; [(ViewController*) self.window.rootViewController receiveProject:str]; diff --git a/ios/ScratchJr/src/ViewController.m b/ios/ScratchJr/src/ViewController.m index 2faf6f6..3877e89 100644 --- a/ios/ScratchJr/src/ViewController.m +++ b/ios/ScratchJr/src/ViewController.m @@ -42,7 +42,6 @@ NSDate *startDate; [self reload]; [self showSplash]; [IO init: self]; - [[UIApplication sharedApplication] setStatusBarHidden:YES withAnimation:NO]; AVAudioSession *audioSession = [AVAudioSession sharedInstance]; [audioSession setCategory:AVAudioSessionCategoryPlayAndRecord error:nil]; }