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
322 views
in Technique[技术] by (71.8m points)

swift - 如何在iOS 13中向下滑动卡片视图(How do you close card view in iOS 13 by sliding it down)

Every time I perform a segue from the new iOS 13 card view, it messes up my UI changes occasionally for whatever reason.

(每当我从新的iOS 13卡视图执行搜索时,无论出于何种原因,它都会使我的UI更改偶尔发生混乱。)

Instead of the user manually sliding it down to leave the view, how do I do this "swipe down" segue programmatically?

(而不是用户手动将其向下滑动以离开视图,我该如何以编程方式“向下滑动”搜索?)

  ask by Joe translate from so

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

1 Answer

0 votes
by (71.8m points)
self.dismiss(animated: true, completion: nil)

希望对您有帮助。


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

...