开发者

iphone - animation in the simulator works fine but in device nothing happens?

开发者 https://www.devze.com 2022-12-13 06:09 出处:网络
-(void) DownRoll1 { down1.image = up1.image; [UIView beginAnimations:nil context:nil开发者_JAVA技巧];
-(void) DownRoll1 { 
    down1.image = up1.image;
    [UIView beginAnimations:nil context:nil开发者_JAVA技巧];
    [UIView setAnimationDuration:2.2];
    CGPoint destination = CGPointMake(296,440);
    down1.center = destination;
    [UIView commitAnimations];
}


Answer was: check that your filenames will match on the case-sensitive device.

if you want to make something happen more quickly when the user hits the "shuffle" button, you could pre-load the image in your viewDidLoad method, and just not show it until later.

0

精彩评论

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