您的位置:首页 > 移动开发 > IOS开发

iOS学习 bounds

2015-09-15 21:42 309 查看
1, 取出bounds

CGRect bounds = self.iconButton.bounds;

2. 调整大小

bounds.size.width += 50;

bounds.size.height += 50;

//--- 在中间添加动画效果

1> 准备开始一个动画

[UIView beginAnimations:nil context:nil];

2> 设置时间间隔

[UIView setAnimationDuration:1.0];

3,重新设置 bounds

selt.iconButton.bounds = bounds

3> 提交动画

[UIView commitAnimations];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: