浏览代码

VLCSearchController: Fix `NSInvalidArgumentException` on search

Signed-off-by: Carola Nitz <nitz.carola@googlemail.com>
Soomin Lee 7 年之前
父节点
当前提交
30da5541f2
共有 1 个文件被更改,包括 3 次插入1 次删除
  1. 3 1
      Apple-TV/VLCSearchController.m

+ 3 - 1
Apple-TV/VLCSearchController.m

@@ -17,11 +17,13 @@
 {
     return self;
 }
+
 - (void)showViewController:(UIViewController *)vc sender:(id)sender
 {
+    // Setting to active to NO otherwise, it will perform a default presentation which led to an `NSInvalidArgumentException`.
+    self.active = NO;
     [self.presentingViewController showViewController:vc sender:sender];
     [self dismissViewControllerAnimated:YES completion:nil];
 }
 
-
 @end