0

I try to kill some views with that code (and the same on the other way with the other view):

NSMutableArray *vcArray = [[NSMutableArray alloc] initWithArray: self.navigationController.viewControllers];
[vcArray removeObjectAtIndex: 0];
self.navigationController.viewControllers = vcArray;
[self performSegueWithIdentifier:@"segueOldView" sender:nil];

My problem, is that the memory is increasing, and I cannot manage it as it is with ARC.

enter image description here

Ratul Sharker
  • 7,484
  • 4
  • 35
  • 44
ΩlostA
  • 2,501
  • 5
  • 27
  • 63
  • 1
    That piece of code you pasted has nothing to do with your memory issues, which are most likely caused by retain cycles. Launch `Leaks` Instrument and search for memory leaks. – mag_zbc Sep 13 '17 at 14:02
  • Or (easier, IMHO), use "debug memory graph" feature and identify things in the list that should have been deallocated, and it will show you what established the strong reference to it. See latter part of [this answer](https://stackoverflow.com/a/14105056/1271826). – Rob Sep 13 '17 at 14:32

0 Answers0