简体   繁体   中英

Close a Page Sheet VC through pulling in down

I'm trying to close a VC on a special way. As the title says I want it to be covered vertical but not from down to top, but the other way. i tried all things I found but non of them helped. I´m using Navigation controllers and if I pull the VC with my finger down it works, but if I use my back Btn it covers from bottom to top.

Currently the button code is pretty simple: self.performSegue(withIdentifier: "BackToFriends", sender: nil) Where do I have to define In which way it closes?

Thanks for every help

Ups it´s really simple. Just using self.dismiss(animated: true) and that´s it

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM