iOS: get rid of warnings Fix #405

This commit is contained in:
Yueyu 2021-04-15 06:53:27 +08:00
parent a5c182d05c
commit c5f43b6152
2 changed files with 1 additions and 2 deletions

View file

@ -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) {
NSString *str = [IO encodeBase64: [[NSData alloc] initWithContentsOfURL:url]]; NSString *str = [IO encodeBase64: [[NSData alloc] initWithContentsOfURL:url]];
[(ViewController*) self.window.rootViewController receiveProject:str]; [(ViewController*) self.window.rootViewController receiveProject:str];

View file

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