动画 - 使用 POViewFrameBuilder 快速实现 UIView 的动画移动和布局
变更记录
序号 | 录入时间 | 录入人 | 备注 |
---|---|---|---|
1 | 2015-04-03 | Alfred Jiang | - |
2 | 2015-12-23 | Alfred Jiang | - |
方案名称
动画 - 使用 POViewFrameBuilder 快速实现 UIView 的动画移动和布局
关键字
动画 \ UIView \ Layout \ Animation
需求场景
- 动画实现子 UIView 的布局动画和动画移动效果
参考链接
详细内容
- 将 POViewFrameBuilder 文件加入工程
- 引入 UIView+POViewFrameBuilder.h 头文件
- 使用示例
1
2
3
4
5
6
7
8//Resizing a view:
[view.po_frameBuilder setWidth:100.0f height:40.0f];
//Moving a view to be centered within it's superview:
[view.po_frameBuilder centerInSuperview];
//You can combine these methods to your own liking:
[[view.po_frameBuilder setWidth:100.0f height:40.0f] centerHorizontallyInSuperview];
效果图
(无)
备注
(无)
本博客所有文章除特别声明外,均采用 CC BY-NC-SA 4.0 许可协议。转载请注明来自 宁静至远,博雅多通!