iphone - UIViewController class memory issue - presentModalViewController -


I have some memory problem with my iPhone application and I have no clue what is happening.

, I noticed that the memory usage of the application is increasing continuously when one is going from one UIViewController to the other, I have used the "Mark Heap" tool from the "Allocation" tool and it has boundaries that only the object Those that are not distributed, I have UIViewControllers.

To be more specific I have given my two UIViewControllers the first one named the puzzle VIPU controller and the second name is the option. When the app starts, the PuzzleViewController appears. I mark a heap here to set a baseline, and after that I press the "Options" button which will present the option UIViewController. I go back to the first one and I once again marked these stages of these steps After repeated repetition (like 20 times or so: D) I see that after every hipshot I have around 22 objects alive. Two of those objects are examples of my UIViewControllers.

I do not really have a clue what is happening

Here's how I switch to the option UIViewController:

  - ovation button: ( ID) Sender {option * viewController = [[option alloc] init]; [Self-Present Model View Controller: Animated Visual Controller: Yes]; [See Controller Release]; }   

And here's how I go back to the PuzzleViewController:

  --MainMenu (IBAction): (ID) Sender {PuzzleViewController * modalView = [ [PuzzleViewController alloc] init]; [Self-Present Model View Controller: Animated Model View: Yes]; [Model View Release]; }   

My visual play is properly said, but no deloc function is ever called.

Thank you, Andree

Dismiss you Model viewer controller , Do not call presentModalViewController , nor your PuzzleViewController .

Comments

Popular posts from this blog

qt - switch/case statement in C++ with a QString type -

python - sqlite3.OperationalError: near "REFERENCES": syntax error - foreign key creating -

Python's equivalent for Ruby's define_method? -