I’m nearly finished with writing my first iOS application, but I ran into a problem now, at some points the app is freezing up for a few seconds, and I can’t find out why.
So to give you an idea of the app, the layout sort of looks the same like the facebook one, so I have a menu on the left and content on the right
------------------------------------
| | |
| | |
| | |
| UI | |
| TABLE | UITABLEVIEW |
| VIEW | |
| | |
| | |
| | |
| | |
| | |
| | |
------------------------------------
On the left there’s a list of users, clicking on it will show a modal view with the profile.
To give you an idea on the amount of allocations, this is when I first launch my app:

It actually seems a lot already, the tableview on the right consists of cells with an image and 4 labels (and sometimes a UITextView)
When I click on a user and launch the modal view, the allocations go up with about 20MB

But then, and I think this is the problem, when I close the modal view and open it up again, the allocations go up with 50MB

That doesn’t seem very normal and I find it hard to check where exactly it goes wrong.
So a view questions:
– When closing a modal view shouldn’t the allocations go down again?
– How can I see where it goes wrong, seems like there is a huge memory leak somewhere
So after much looking around I had a few problems