Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个运行良好的本地化应用程序。虽然所有页面都使用更改语言按钮刷新,但它们是没有的页面。此页面由“返回”按钮触发。显然,后退按钮不会触发函数 ViewDidLoad。如何通过后退按钮刷新 VC?
在里面使用你想要的代码:viewWillAppear:方法。
viewWillAppear: