方式一
//开启一个动画
[UIView beginAnimations:nil context:nil];
//动画的执行时间
[UIView setAnimationDuration:0.7];
// 放入动画的代码
self.iconBtn.center = center;
//提交动画
[UIView commitAnimations];
方式二
//block式动画
[UIView animateWithDuration:0.7 animations:^{
//代码就放在这里面
self.iconBtn.bounds = bounds;
}];
本文将介绍如何使用Objective-C语言进行iOS应用开发,包括基本语法、开发环境配置、常见框架使用及实战案例分析。
5477

被折叠的 条评论
为什么被折叠?



