[UIView animationWithDuration:animations:]使用的注意点
2013-05-08 16:11
274 查看
apple官方文档:
在动画的过程中,UIView上的控件事件是无法响应的, ios5以前,app中所有控件都无法响应的
如果要能接受事件,需要包含UIViewAnimationOptionAllowUserInteraction 这个属性
This method performs the specified animations immediately using the UIViewAnimationOptionCurveEaseInOutand UIViewAnimationOptionTransitionNone animation options.
During an animation, user interactions are temporarily disabled for the views being animated. (Prior to iOS 5, user interactions are disabled for the entire application.)
If you want users to be able to interact with the views, include the UIViewAnimationOptionAllowUserInteraction constant in the options parameter.([UIView animateWithDuration:delay:options:animations:completion: ])
在动画的过程中,UIView上的控件事件是无法响应的, ios5以前,app中所有控件都无法响应的
如果要能接受事件,需要包含UIViewAnimationOptionAllowUserInteraction 这个属性
This method performs the specified animations immediately using the UIViewAnimationOptionCurveEaseInOutand UIViewAnimationOptionTransitionNone animation options.
During an animation, user interactions are temporarily disabled for the views being animated. (Prior to iOS 5, user interactions are disabled for the entire application.)
If you want users to be able to interact with the views, include the UIViewAnimationOptionAllowUserInteraction constant in the options parameter.([UIView animateWithDuration:delay:options:animations:completion: ])
相关文章推荐
- IOS开发笔记(6)UIView使用animateWithDuration控制页面效果
- [UIView beginAnimations:context:]与[UIView animateWithDuration:animations:]值得注意的一个区别
- UIView animateWithDuration 使用详解
- UIView animateWithDuration 使用详解
- UIView animateWithDuration:animation:completion
- UIView animateWithDuration 使用详解
- UIView animateWithDuration 使用详解
- [UIView beginAnimations:context:]与[UIView animateWithDuration:animations:]值得注意区别
- iOS- 动画UIView animateWithDuration 使用
- [UIView beginAnimations:context:]与[UIView animateWithDuration:animations:]值得注意的一个区别
- UIView animateWithDuration 使用详解
- UIView animateWithDuration 使用详解
- 连续执行UIView的animateWithDuration:delay:options:animations:completion出现的问题
- UIView类的UIViewAnimationWithBlocks扩展 和 使用core animation
- UIView animateWithDuration 使用详解
- [UIView beginAnimations:context:]与[UIView animateWithDuration:animations:]值得注意的一个区别
- 动画 UIView animateWithDuration 使用详解
- UIView animateWithDuration 使用详解
- 第七篇、使用UIView的animateWithDuration方法制作简易动画
- UIView animateWithDuration 使用详解