Hello i have an array of uiimage views in a function.
But the problem is when i call the function is sometimes i would like
to change the images, so how could i do it and releasing the memory
to avoid memory leaks.
FicherosBolasGrises is a NSMutable array of strings where i save the names
Of the images files.
In another function if i need it i change the images in FicheroBolasGrises,
The problem is when i call the function to assign the images to the array
of image views i have memory leaks because i have not releases before, how i could release the array of image views to avoid memory leaks?
Any help?
Thanks a lot
this is my function
Thanks a lot for your help
But the problem is when i call the function is sometimes i would like
to change the images, so how could i do it and releasing the memory
to avoid memory leaks.
FicherosBolasGrises is a NSMutable array of strings where i save the names
Of the images files.
In another function if i need it i change the images in FicheroBolasGrises,
The problem is when i call the function to assign the images to the array
of image views i have memory leaks because i have not releases before, how i could release the array of image views to avoid memory leaks?
Any help?
Thanks a lot
this is my function
Code:
fullarray
{
imageBolaGris = [ImageCache loadImage:[ficherosBolasGrises objectAtIndex:i]];
tBolasGrises[i] = [[UIImageView alloc] initWithImage:imageBolaGris];
}
Thanks a lot for your help
Last edited by a moderator: