I am having a problem with a UIView that when using a solid colour for the background, animates perfectly fine.
However when I set a background image for it's colour instead, the UIView animation doesn't work properly. It looks like a ghost outline of the page curl, but the UIView itself is 100% transparent (If that makes sense).
The image's background colour is set beforehand like so (which screws up the animation):
UIImage *loadedImage = [UIImage imageNamed:@"MyTexture.png"];
UIColor *tempColour = [[UIColor alloc] initWithPatternImage:loadedImage];
[myUIView setBackgroundColor:tempColour];
[tempColour release];
Setting the background colour to solid however, lets the animation work fine:
[myUIView setBackgroundColor:[UIColor blackColor]];
The animation I am using:
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:0.5];
[UIView setAnimationTransition:UIViewAnimationCurveLinear forView:myUIView cache:YES];
[myUIView setHidden:YES];
[UIView commitAnimations];