私は問題があります:
ExploreViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"ProfileViewController"];
vc.id_from = post.user_id;
[self.navigationController pushViewController:vc animated:YES];
ご覧のとおり、viewController をインスタンス化し、navigationController にプッシュします。vc はautoreleaseである必要がありますが、 dealloc メソッドは呼び出されません。
したがって、ビュー コントローラーをプッシュした後に解放すると、次のようになります。
ExploreViewController *vc = [self.storyboard instantiateViewControllerWithIdentifier:@"ProfileViewController"];
vc.id_from = post.user_id;
[self.navigationController pushViewController:vc animated:YES];
[vc release];
ビューコントローラーをポップするとdeallocメソッドが呼び出されますが、上記のコードを再度実行すると、deallocがすぐに呼び出され、他のオブジェクトがvcを見つけられないためアプリがクラッシュします。
だから解放しないとどんどんメモリが忙しくなる。
みんなありがとう!