I have a real problem here, i really cant figure it out.
I'm new to xcode so please explain stuff simply. ok, i have an ibaction that says this:
This changes the image fine and i have 6 images, but the memory leaks REALLY bad and my app just crashes after showing 1 image. How do i do this without massive leaks? any ideas? please explain simply!!!
I'm new to xcode so please explain stuff simply. ok, i have an ibaction that says this:
Code:
-(IBAction)ChangeImage1 {
imageView.image = [[UIImage alloc] initWithContentsOfFile: @"Image1.jpg"];
}
This changes the image fine and i have 6 images, but the memory leaks REALLY bad and my app just crashes after showing 1 image. How do i do this without massive leaks? any ideas? please explain simply!!!