Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
950 views
in Technique[技术] by (71.8m points)

objective-c - 在iOS <13.0上关闭模式视图控制器(dismiss modal view controller on iOS < 13.0)

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...