I have an AVPlayer in an app I'm building that absolutely mustn't start playing until after a UIImage is shown. I'm finding, though, that it sometimes starts playing before the image. I created another project just to see what would happen if I broke after setImage, and the result was quite surprising: the image did not get set until after I continued past the breakpoint. Here's my code:
Will someone please help? Thanks.
The Solution That Solved My Problem
I checked the sizes (in pixels) of the images, and they were way too big. Bigger size = greater processor load. Therefore, using an image manipulation program, I reduced the sizes.
Code:
- (void)viewDidAppear:(BOOL)animated
{
[superviewDidAppear:animated];
NSString *fileName = @"nottelling";
UIImage *image = [UIImageimageNamed:fileName];
[self.imageViewsetImage:image];
NSLog(@"image: %@",image);
}
Will someone please help? Thanks.
The Solution That Solved My Problem
I checked the sizes (in pixels) of the images, and they were way too big. Bigger size = greater processor load. Therefore, using an image manipulation program, I reduced the sizes.
Last edited: