浏览代码

VLCSettingsController: Passcode: Present in fullscreen

Soomin Lee 5 年之前
父节点
当前提交
52fafc2fc1
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Sources/VLCSettingsController.m

+ 2 - 0
Sources/VLCSettingsController.m

@@ -141,6 +141,8 @@ NSString * const kVLCSectionTableHeaderViewIdentifier = @"VLCSectionTableHeaderV
             PAPasscodeViewController *passcodeLockController = [[PAPasscodeViewController alloc] initForAction:PasscodeActionSet];
             passcodeLockController.delegate = self;
             UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:passcodeLockController];
+            // Specify modal presentation style due to iOS 13 behaviour
+            navigationController.modalPresentationStyle = UIModalPresentationFullScreen;
             [self.navigationController presentViewController:navigationController animated:YES completion:nil];
         }
     }