I am currently using presentModalViewController:animated:
.
(我目前正在使用presentModalViewController:animated:
)
On iOS 13.0, I can swipe down to dismiss the new viewController, On iOS 12 however, I cannot.
(在iOS 13.0上,我可以向下滑动以关闭新的viewController,但是在iOS 12上,我不能。)
I can only find information how to disable the swipe, not how to make it work for iOS < 13.0 though. (我只能找到有关如何禁用滑动的信息,但不能找到如何使其在iOS <13.0上运行的信息。)
Here is how i show the View Controller (这是我如何显示视图控制器)
//Called from a different thread
-(void)presentModalView:(UIViewController*)viewController {
dispatch_async(dispatch_get_main_queue(), ^{
[self presentModalViewController:viewController animated:YES];
});
}
ask by Raildex translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…