realize this is my first post here. So hi everyone.
Let's start off with a tough one :-)
I have a UIScrollView which contains a UIImageView and two UIButtons. On iPhone OS 3.0 (Final release) I'm experiencing a strange problem: In Instruments I can see that whenever I'm scrolling my memory consumption increases and this never gets released. I can also see that when using Apple sample code on 3.0.
It's me who got the same problem...
I'm freaking out for a week.
Not even the UIScrollView, the memory still increases when i scroll a UITableView.
Is this a bug, or i'm misunderstanding something??
I am having a similar issue, but I am simply moving the center co-ordinates of a UIImage. Did you mange to resolve this? If not do you want to post some of your code, I can look to see if you are doing anything the same as me and maybe identify where the problem is?
Make sure you balance out the retain count for the UIImageView and the UIButton instances, not allocating more than needed, in other words if there are no changes on the UI, do not reallocate on scrolling.
The similar case with UITableView, additionally with reusing the UITableViewCell.
Writing code is not only about writing instructions to a machine / computer, but also about writing something that could be read, understood, and maintained by others. That's why, I like Cocoa.