I am creating about 100 uibuttons
and each one has a unique image( the images are some 60x70 png images).I have a problem with the memory.I would like at some point to release this memory, at the point i have finished using this buttons.
I set the images this way.
[button1 setImage:imageButton1 forState:UIControlStateNormal];
where
button1=[UIButton buttonWithType:UIButtonTypeCustom];
Now what i am trying to do is to set the image used by the uibuttons to nil as follows.
[button1 setImage:nil forState:UIControlStateNormal];
But this way, the memory remain the same.