Hi all..
My app is crashing after i navigate between the viewcontrollers so many times...
Also the ApplicationRecievedMemoryWarning getting called...
I have four/five view controllers (dynamically decided)...
as all the viewcontrollers are similar kind i am creating an instance of the same kind and pushing it...
Say in my firstViewController.m
i am pushing "anotherInstanceOfFirstViewController" , but the array used to generate the tableViewCells will vary with sub-levels.
ie..
in firstViewController..
on clicking any cell in tableview
anotherInstanceOfFirstViewController = [[firstViewController alloc]init];
self.menuObj = [self.arrayOfNameForCells objectAtIndex:someNumber];
anotherInstanceOfFirstViewController.arrayOfNameForCells = self.menuObj.arrayOfNames;
push self.anotherInstanceOfFirstViewController
I am releasing the anotherInstanceOfFirstViewController in dealloc (But the retainCount is not zero in dealloc )...
Moreover the app crashing after some forward/backward navigation ....
So in the ne
My app is crashing after i navigate between the viewcontrollers so many times...
Also the ApplicationRecievedMemoryWarning getting called...
I have four/five view controllers (dynamically decided)...
as all the viewcontrollers are similar kind i am creating an instance of the same kind and pushing it...
Say in my firstViewController.m
i am pushing "anotherInstanceOfFirstViewController" , but the array used to generate the tableViewCells will vary with sub-levels.
ie..
in firstViewController..
on clicking any cell in tableview
anotherInstanceOfFirstViewController = [[firstViewController alloc]init];
self.menuObj = [self.arrayOfNameForCells objectAtIndex:someNumber];
anotherInstanceOfFirstViewController.arrayOfNameForCells = self.menuObj.arrayOfNames;
push self.anotherInstanceOfFirstViewController
I am releasing the anotherInstanceOfFirstViewController in dealloc (But the retainCount is not zero in dealloc )...
Moreover the app crashing after some forward/backward navigation ....
So in the ne