I have an AViewController, if I create BViewController as an instance variable like this
@interface AViewController ()
{
BViewController *bVC;
}
@end
then push
- (void)push {
bVC = [[BViewController alloc] init];
[self.navigationController pushViewController:bVC animated:YES];
}
Dealloc method won't be called when BViewController pop.
Both viewcontrollers are almost empty, I mean there are no NSTimers, blocks or network requests. I guess a strong reference cycle exists in AViewController, but can't figure out the cycle.
So, can anyone help me about this, thanks!