views:

27

answers:

1

I have the following code that gets called after the view loads. It works perfectly on the iPhone, but appears to do nothing at all on the iPad. I have confirmed the frame/bounds of my UIImageView is set to the size of the iPad's screen. Recommendations please?

- (void)startNextAnimation {
 CABasicAnimation *crossFade = [CABasicAnimation animationWithKeyPath:@"contents"];
 crossFade.fromValue = imageFrom;
 //crossFade.fromValue = (id)(imageFrom.CGImage);
 crossFade.toValue = imageTo;
 //crossFade.toValue = (id)(imageTo.CGImage);
 crossFade.delegate = self;
 crossFade.duration = 5.0f;
 crossFade.fillMode = kCAFillModeForwards;
 crossFade.removedOnCompletion = NO;
 [bgPattern.layer addAnimation:crossFade forKey:@"animateContents"];

}

A: 

Sorry, nothing to see here. This had to do with iOS 4 not requiring the image extension, and 3.2 still needing it. All solved.

Christian