开发者

UIView Animation isn't working

开发者 https://www.devze.com 2023-03-13 08:39 出处:网络
[UIView beginAnimations:nil context:UIGraphicsGetCurrentContext()]; [UIView setAnimationDuration:1.0];
[UIView beginAnimations:nil context:UIGraphicsGetCurrentContext()];
[UIView setAnimationDuration:1.0];
[UIView setAnimationDelay:0.0];
[UIView s开发者_开发技巧etAnimationDelegate:self];
[UIView setAnimationTransition:UIViewAnimationTransitionCurlDown forView:viewHelp cache:YES];

[self.view addSubview:viewHelp];

[UIView commitAnimations];

Where am I doing wrong? I am able to switch the view but I am not able to animate it.


[self.view addSubview:viewHelp]; the animation is just literally adding the subview, you need to work out what animation you want, and then apply it by changing values in the views frame property.?

follow this thread : click me

0

精彩评论

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

关注公众号