how to pop when first pushed vc then presented modal vc 12 times?

前端 未结 6 895
被撕碎了的回忆
被撕碎了的回忆 2021-01-29 10:33

I have a navigation controller. I first pushed a VC, then presented 12 modals VC\'s. Now I want to pop to root viewController. How can I do that? Please help me out.

6条回答
  •  误落风尘
    2021-01-29 10:57

    You will need to dismiss the 12 modal views that you have presented. popViewController or popToRootViewController will not work.

提交回复
热议问题