Merge pull request #406 from yueyuzhao/issue/405-ios-warning

iOS: get rid of warnings Fix #405
This commit is contained in:
chrisgarrity 2021-05-04 08:45:40 -04:00 committed by GitHub
commit 6ccafdd9cc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 2 deletions

View file

@ -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<UIApplicationOpenURLOptionsKey,id> *)options {
if (url) {
NSLog(@"openg url: %@", url.absoluteURL);
[ScratchJr receiveProject:url];

View file

@ -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];
}