[英]Go back to view controller from tab bar controller
你可以試試
self.navigationController?.navigationController?.popToRootViewController(animated: true)
試試這個代碼。 它為您工作。
_ = navigationController?.popToRootViewController(animated: true)
要么
_ = navigationController?.popViewController(animated: true)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.