ナビゲーションバーからビューコントローラーに戻ったときに解放されるメソッドはありますか?
ナビゲーションバーから画面に戻ったときにNIBをリロードしたい。
出来ますか?
ありがとう
ナビゲーションバーからビューコントローラーに戻ったときに解放されるメソッドはありますか?
ナビゲーションバーから画面に戻ったときにNIBをリロードしたい。
出来ますか?
ありがとう
のメソッドを確認することviewWillAppear:animated
をお勧めします。これらは、ViewControllerがプッシュされて表示されるたびに呼び出されます。viewDidAppear:animated
UIViewController
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
// Reload your data here, and this gets called
// before the view transition is complete.
}
- (void)viewDidAppear:(BOOL)animated {
[super viewDidAppear:animated];
// Reload your data here, and this gets called
// after the view transition is complete.
}