Kin*_*cle 2 iphone cocoa objective-c
我正在我的应用程序中移动UILabel,我希望它能够在几帧而不是跳跃位置上更改位置和大小.我正在为Iphone使用Objective-c和cocoa开发.谁能帮我吗?
最简单的方法是:
CGRect endFrame = /*The frame of your label in end position*/
[UIView animateWithDuration:0.5 animations:^{
myLabel.frame = endFrame;
}];
Run Code Online (Sandbox Code Playgroud)