IOS UIView的淡入淡出效果
来源:互联网 发布:河北工商学院知乎 编辑:程序博客网 时间:2024/05/22 02:41
- (void)viewDidLoad
{
[superviewDidLoad];
// Do any additional setup after loading the view from its nib.
timer=[NSTimerscheduledTimerWithTimeInterval:3
target:self
selector:@selector(showArrow)
userInfo:nil
repeats:YES];
}
-(void)showArrow{
UIImageView *arrow =(UIImageView *) [self.viewviewWithTag:101];
[UIViewbeginAnimations:@"ShowArrow"context:nil];
[UIViewsetAnimationCurve:UIViewAnimationCurveEaseIn];
[UIViewsetAnimationDuration:1.0];
[UIViewsetAnimationDelegate:self];
[UIViewsetAnimationDidStopSelector:@selector(showArrowDidStop:finished:context:)];
// Make the animatable changes.
arrow.alpha =0.0;
// Commit the changes and perform the animation.
[UIViewcommitAnimations];
}
// Called at the end of the preceding animation.
- (void)showArrowDidStop:(NSString *)animationID finished:(NSNumber *)finished context:(void *)context
{
UIImageView *arrow =(UIImageView *) [self.viewviewWithTag:101];
[UIViewbeginAnimations:@"HideArrow"context:nil];
[UIViewsetAnimationCurve:UIViewAnimationCurveEaseOut];
[UIViewsetAnimationDuration:1.0];
[UIViewsetAnimationDelay:1.0];
arrow.alpha =1.0;
[UIViewcommitAnimations];
}
- IOS UIView的淡入淡出效果
- 【IOS动画】UIView放大缩小背景淡入淡出动画效果
- 窗体的淡入淡出效果
- Flex 淡入淡出的效果
- jquery的淡入淡出效果
- jQuery的淡入淡出效果
- 淡入淡出UIView动画
- ios 视图的淡入淡出
- 【代码笔记】iOS-淡出淡入效果
- 窗口淡入淡出效果的实现
- 右键菜单的淡入淡出效果
- 窗口淡入淡出效果的实现
- 窗口淡入淡出效果的实现
- 窗口淡入淡出效果的实现
- C#实现窗体的淡入淡出效果
- 右键菜单的淡入淡出效果
- 透明窗口的淡入淡出效果
- C# 实现窗体的淡入淡出效果
- VS2005 DEBUG 设置断点条件
- 网页矢量素材:33套精美的免费 Banner 素材下载
- Unable to get value of the property '2': object is null or undefined
- 数据模型在电商CRM中的应用&电商存量客户诊断实战帖
- Apache StringUtils 用法
- IOS UIView的淡入淡出效果
- 非常有用的免费UI设计工具和资源
- sqlite3中的数据类型
- MFC自绘控件与界面美化
- 加载CSS的四种方式以及CSS代码格式
- Win7系统IIS中配置PHP服务
- 终极求生手机(待机15年的)
- 通过MediaStore获取Audio信息
- 你是否了解Oracle B树索引