Tom-猫
来源:互联网 发布:java.util.TimeZone 编辑:程序博客网 时间:2024/05/16 00:25
-(void)tomAnimationWithName(NSString*)name count(NSInteger)count
{
//Animation image array
NSMutableArray *array = [NSMutableArray array];
//Add the flash images
for(int i = 0;i < count;i++)
{
//Name & loading pictures
NSString *imageName = [NSString stringWithFormat:@”%@_%02d.jpg”,name,i];
NSString *path = [[NSBundle mainBundle]pathForResouce:imageName ofType:nill];
UIImage *image = [UIImageimageWithContentsOfFile:path];
[array addObject:image];
}
//Set the animation array
Self .tom.animationImages = array;
//The number of repeat
Self.tom.animationRepeatCount = 1;
//Animation duration
Self.tom.animationDuration = self.tom.animationImages.count *0.1;
//
[self .tom startAnimating];
//Remove the animation
[self.tom performSelector:@selector(setAnimationImage:)withObject:nillafterDelay:self.tom animationDuration ];
}
-(IBAction) tomAnimation(UIButton *)sender
{
//currentTitle Gets the current button headline
[Self tomAnimationWithName:sender.currentTitlecount:sender.tag];
}
- Tom猫
- TOM猫
- Tom-猫
- tom猫的UI
- 165,TOM猫源代码
- 06-TOM汤姆猫
- TOM猫部分代码
- Tom
- Tom
- tom猫变声原理解析
- TOM猫的简单实现
- 序列帧动画 TOM猫
- 会说话的tom猫
- iOS开发之Tom猫
- Ios开发-第一天-Tom猫
- IOS初体验-Tom猫的开发
- 利用UIButton简单实现TOM猫
- IOS-0812-图片浏览&Tom 猫(笔记)
- ios技术博客
- tableView位置的动态改变
- Recover Binary Search Tree
- hd1405 The Last Practice
- 用Redis实现Session功能
- Tom-猫
- virtualbox增强功能-VBoxGuestAdditions安装
- 公钥 私钥 数字签名 数字证书
- x += i与x=x+i
- LeetCode之Reverse Words in a String
- 公共汽车,写一个程序,告诉司机怎么走能接到最多的乘客。
- Java修饰符关键词大全
- HDU1425 - sort (简单题)
- URL中的特殊转移符