Display and dismiss a modal view controller in Swift

前端 未结 5 1174
栀梦
栀梦 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:21

    You can use presentViewController:animated:completion: and dismissViewControllerAnimated:completion: methods from UIViewController. See docs here

提交回复
热议问题