我怎样才能幻灯片文本由左到右的iPhone? [英] How can I slide text from left to right in iPhone?
本文介绍了我怎样才能幻灯片文本由左到右的iPhone?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能幻灯片文本由左到右的iPhone?
解决方案
[标签SETFRAME:CGRectMake(278,32,42,29)]; //最右边的位置
[UIView的beginAnimations:无背景:无];[UIView的setAnimationDuration:0.5];
[UIView的setAnimationCurve:UIViewAnimationCurveEaseIn];
[标签SETFRAME:CGRectMake(0,20,42,29)]; //最左边的位置
[UIView的commitAnimations];
How can I slide text from left to right in iPhone ?
解决方案
[label setFrame:CGRectMake(278, 32, 42, 29)]; // Right most position
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.5];
[UIView setAnimationCurve:UIViewAnimationCurveEaseIn];
[label setFrame:CGRectMake(0, 20, 42, 29)]; //left most position
[UIView commitAnimations];
这篇关于我怎样才能幻灯片文本由左到右的iPhone?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文