hi there
i'm new to iPhone dev so plz be gentle ...
i've created an iphone app which uses CoreData sqlite DB
i've very more than 50 pic with huge size in my DB
when i display an image it won't be deleted from memory when i get out from the view (cache)
-(void)loadView{ [super loadView]; self.title = @"Photo";
imageScrollView = [[UIScrollView alloc] initWithFrame:CGRectMake(0, 0, 320, 416)]/*[[self view] bounds]]*/;
[imageScrollView setBackgroundColor:[UIColor blackColor]];
[imageScrollView setDelegate:self];
[imageScrollView setBouncesZoom:YES];
[[self view] addSubview:imageScrollView];
TapDetectingImageView *temp= [[TapDetectingImageView alloc]initWithImage:People.photo];
[temp setDelegate:self];
[temp setTag:ZOOM_VIEW_TAG];
[imageScrollView setContentSize:[temp frame].size];
[imageScrollView addSubview:temp];
[temp release];}
people say don't use [UIImage imageNamed...] try to use [UIImage imageWithDate ...] but i'm not using [UIImage imageNamed...] so plz can you tell me how to solve this problem ..???