[UIView animateWithDuration:animations:][UIView beginAnimations:context:]
来源:互联网 发布:淘宝上有修键盘的吗 编辑:程序博客网 时间:2024/04/29 05:35
看过官方文档的都知道,官方推荐在iOS4以后使用[UIView animateWithDuration:animations:],而不是原来的[UIView beginAnimations:context:],来完成动画,虽然二者功能几乎完全相同,但使用前者在一些情况下会方便不少,这些内容可以参考官方文档View Programming Guide For iOS的Animation一节.
二者有一个值得新手注意的区别就是[UIView animateWithDuration:animations:]默认会禁止触摸,手势等的响应,这可以通过设置option选项来解决(直接引用StackOverFlow的一段了):
- [UIView animateWithDuration:animations:] 与[UIView beginAnimations:context]
- [UIView animateWithDuration:animations:][UIView beginAnimations:context:]
- [UIView beginAnimations:context:]与[UIView animateWithDuration:animations:]区别
- [UIView beginAnimations:context:]与[UIView animateWithDuration:animations:]值得注意区别
- [UIView beginAnimations:context:]与[UIView animateWithDuration:animations:]值得注意的一个区别
- [UIView beginAnimations:context:]与[UIView animateWithDuration:animations:]值得注意的一个区别
- UIView animateWithDuration: delay: options: animations: completion:
- UIView animateWithDuration
- UIView animateWithDuration
- 关于UIView的方法animateWithDuration:animations:completion:的说明
- UIView beginAnimations ARC
- 动画执行时调用的方法[UIView beginAnimations: context:];
- uiview animations
- UIView animateWithDuration 使用详解
- UIView animateWithDuration 使用详解
- UIView animateWithDuration 使用详解
- UIView animateWithDuration 使用详解
- UIView animateWithDuration 使用详解
- makefile
- 三层开发 概念
- Nginx模块开发入门
- IOS HTTP Living Strem详解一
- sql server表值函数和标量函数
- [UIView animateWithDuration:animations:][UIView beginAnimations:context:]
- Chrome线程模型(编译)
- 快速安装mysql数据库-CentOS
- IOS HTTP Living Strem详解二
- HDU 1892 二维树状数组
- IOS多线程之NSThread、NSOperation、NSInvocationOperation
- iOS异常相关
- Objective-C多线程编程之GCD
- ios Http living Stream详解三