UIImageView帧动画
来源:互联网 发布:苹果mac快捷键删除 编辑:程序博客网 时间:2024/06/05 02:27
- (IBAction)onButtonClickHandler:(id)sender {
UIImageView *heartImageView = [[UIImageViewalloc]initWithFrame:CGRectMake(100.0, 100.0, 50.0, 50.0)];
[self.view addSubview:heartImageView];
NSMutableArray *images = [[NSMutableArrayalloc]initWithCapacity:7];
for (int i=1; i<=7; i++) {
[images addObject:[UIImageimageNamed:[NSStringstringWithFormat:@"xxx%d.png",i]]];
}
heartImageView.animationImages = images;
heartImageView.animationDuration = 0.4 ;
heartImageView.animationRepeatCount = 1;
[heartImageView startAnimating];
[NSTimer scheduledTimerWithTimeInterval:heartImageView.animationDuration
target:self
selector:@selector(onFrameAnimationFinished:)
userInfo:heartImageView
repeats:NO];
}
- (void)onFrameAnimationFinished:(NSTimer *)timer{
UIImageView * imageView = (UIImageView *)[timeruserInfo];
[imageView removeFromSuperview];
}
- UIImageView帧动画
- IOS--UIImageView--帧动画
- UIImageView帧动画
- UIImageView播放帧动画
- UIImageView 的帧动画
- UIIMageView实现帧动画
- iOS之UIImageView帧动画
- UIImageView 动画
- UIImageView动画
- UIimageView 动画
- UIImageView动画
- 基本控件UIImageView的帧动画
- iOS中的动画:核心动画Core Animation, UIView动画, Block动画, UIImageView的帧动画.
- 利用UIImageView实现动画
- UIImageView动画显示
- UIImageView 加载动画
- UIImageView图片动画
- UIImageView的动画效果
- Generator Fan Failure Triggered AWS Outage
- Activity的生命周期学习体验
- Power Outage Affects Amazon Customers
- 安装ubuntu12注意事项
- San Diego’s AIS Rides Out Power Outage
- UIImageView帧动画
- 程序员必看的六十本书
- Power Surge KOs Washington State Data Center
- Sicily 1028 Hanoi Tower Sequence
- JdbcTemplate 简介
- Java网络编程——使用NIO实现非阻塞Socket通信
- 使用shell编写的一个简单的时钟(tput和date介绍)
- 一些支持向量机(SVM)的开源代码库的链接及其简介
- 解决Cisco VPN Client Reason 442: Failed to Enable Virtual Adapter