需要创建一个还原点(以保存当前图像位置) [英] need to create a restore point (to save the current image position)
本文介绍了需要创建一个还原点(以保存当前图像位置)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何为say1对象(s以及如何调用它)创建一个还原点(以保存当前位置以便以后重新启动动画). 谢谢.
how do i create a restore point (to save the current position for restarting the animation later) for the say1 object (s and also how to call it. thanks.
- (void) doneThing {
say1.hidden = FALSE;
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.4];
CGPoint destination = CGPointMake(152,-20);
say.center = destination;
[UIView commitAnimations];
}
推荐答案
只需将其位置存储在实例变量中即可.
Just store its location in an instance variable.
这篇关于需要创建一个还原点(以保存当前图像位置)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文