- (IBAction)moveLowerOnClick{
[UIView beginAnimations:nil context:NULL];
self.somethingToMove.frame = CGRectOffset(self.somethingToMove.frame, 0, 50);
self.anotherThingToMove.frame = CGRectOffset(self.anotherThingToMove.frame, 0, 50);
[UIView commitAnimations];
}
Run Code Online (Sandbox Code Playgroud)
但在这里:iPhone UIView动画最佳实践是关于替代品的一些讨论
归档时间: |
|
查看次数: |
4184 次 |
最近记录: |