开发者

Cross Disolve working on iPhone but not iPad

开发者 https://www.devze.com 2023-01-07 12:22 出处:网络
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 se

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"];

}


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消