Display and dismiss a modal view controller in Swift

前端 未结 5 1129
栀梦
栀梦 2021-02-04 01:01

When a button is pressed I want to segue between two view controllers by using a Modal Transition style CoverVertical and then dismiss it. There is allot of info ou

5条回答
  •  暖寄归人
    2021-02-04 01:22

    To Dismiss View Controller in Swift 3.0

    self.dismiss(animated: true, completion: {})
    

提交回复
热议问题