简体   繁体   中英

How can I go back to the “Table” of a MOre… button in iOS when I click the more button and not the VC I left from

I have a Navigation controller.

NAVC->MORE... button and then a few extra VCs under the more.

If I go to a VC under the more...and then to one not on the More... then when I return to the More... I go to the VC which I last selected under the More.. and not the actual list for the More...

I was wondering how I can do this.

I have removed the "BACK" buttons from the VCs under the more because it uses up a lot of realestate and the app has a custom header.

Thanks R

如果您有对“更多”视图控制器的引用,则可以将其作为对UINavigationController上的popToViewController(_:,animated:)方法的引用:

self.navigationController?.popToViewController(MoreViewController, animated: true)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM