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.
我正在使用 Xcode 提供的模板制作 TabBarController 应用程序,并且每次单击它时都需要重新加载第二个视图控制器。我该怎么做呢 ?
谢谢
每当标签栏切换视图控制器时,viewWillAppear都会调用 viewcontroller 函数
viewWillAppear
所以在viewWillAppear函数中添加代码UIViewController
UIViewController