dismiss current view controller AFTER presenting new view controller - swift

后端 未结 4 2513
一整个雨季
一整个雨季 2021-02-19 10:24

I\'m trying to dismiss a VC and present a new VC. but I don\'t want old VC to exist anymore. I use the code below to dismiss current VC and present new one. but this way, there\

4条回答
  •  走了就别回头了
    2021-02-19 10:41

    I think the best way will be to dismiss the current VC when you actually go back. That means, present your destinationController using the current VC and then when you go back, dismiss both VC's

提交回复
热议问题