- (void)viewWillAppear:(BOOL)animated
{
if (_needRefresh)
{ NSLog(@"Type This If You Are IN");
[self.myTableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationFade];
_needRefresh = NO;
}
何かが変更された場合にのみテーブルを更新したい。[self.myTableView reloadSections:[NSIndexSet indexSetWithIndex:0] withRowAnimation:UITableViewRowAnimationFade];に移動するとコードはうまく機能しますviewControllerが、中に入れるとif何かがうまくいきません。if 内のNSLogfrom が出力されていることがわかりますので、違いが何であり、リロードが実行されない理由がわかりません。