呈现 UIDocumentPickerViewController 并关闭它会使呈现的视图控制器保持冻结状态
Presenting the UIDocumentPickerViewController and dismissing it keeps the presented view controller in freeze
如何呈现 UIDocumentPickerViewController 并关闭它使呈现的视图控制器保持冻结状态
问题是您在 PDFBrowserViewController 中打开 UIDocumentPickerViewController 所以当您关闭 UIDocumentPickerViewController 但是 PDFBrowserViewController 没有被关闭。
解决方案1:直接在顶部viewcontroller打开UIDocumentPickerViewController而不使用PDFBrowserViewController[=26] =].
解决方案 2: 关闭后 UIDocumentPickerViewController 关闭委托方法中的父控制器。
UIWindow *window = [[[UIApplication sharedApplication] windows] firstObject];
UIViewController *vc = [window rootViewController];
[vc dismissViewControllerAnimated:true completion:nil];
如何呈现 UIDocumentPickerViewController 并关闭它使呈现的视图控制器保持冻结状态
问题是您在 PDFBrowserViewController 中打开 UIDocumentPickerViewController 所以当您关闭 UIDocumentPickerViewController 但是 PDFBrowserViewController 没有被关闭。
解决方案1:直接在顶部viewcontroller打开UIDocumentPickerViewController而不使用PDFBrowserViewController[=26] =].
解决方案 2: 关闭后 UIDocumentPickerViewController 关闭委托方法中的父控制器。
UIWindow *window = [[[UIApplication sharedApplication] windows] firstObject];
UIViewController *vc = [window rootViewController];
[vc dismissViewControllerAnimated:true completion:nil];