Hi -
I am having a problem with memory I cant get straightened out. What I am doing is this:
I have a viewcontroller that looks similar to a book with 7 different tabs. Each time the user presses a tab, the content on the "page" changes and the background image changes to reflect the different tab selected. Each background image is 768x1024 and there is one for each of the 7 tabs.
My problem is that when each tab is selected, the memory is never released for the previous image, and after 7 tabs are selected I have something like 30MB being used up for 7 different images. I have 7 different methods for each of the 7 tabs that the user presses.
-(IBAction) pressedTab1 {
self.tabsImageView.image = nil; //tabsImageView is the imageView I am keeping he background image in.
UIImage *tempUIImage = [UIImage imageNamed:@"tab1selected.png"];
self.tabsImageView.image = tempUIImage;
}