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.
我在 TabBar 中刷新视图。UIView 在我第一次按下 TabButton 时是只读的,下次不会“viewDidLoad”。每次按下按钮时,我都想刷新 UITableView。
谢谢!
好的找到了一个解决方案(就在我在这里发布之后)
添加:
- (void)viewWillAppear:(BOOL)animated { NSLog(@"View appears"); }
到您的 ViewController,您将看到通过单击 TabButton 将调用此方法;)