Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- - (void)viewDidLoad {
- [super viewDidLoad];
- NSArray * imageArray = [[NSArray alloc] initWithObjects:
- [UIImage imageNamed:@"1.png"],
- [UIImage imageNamed:@"2.png"],
- [UIImage imageNamed:@"3.png"],
- [UIImage imageNamed:@"4.png"],
- [UIImage imageNamed:@"5.png"],
- [UIImage imageNamed:@"6.png"],
- [UIImage imageNamed:@"7.png"],
- [UIImage imageNamed:@"8.png"],
- [UIImage imageNamed:@"9.png"],
- [UIImage imageNamed:@"10.png"],
- [UIImage imageNamed:@"11.png"],
- [UIImage imageNamed:@"12.png"],
- nil];
- UIImageView * ryuJump = [[UIImageView alloc] initWithFrame:
- CGRectMake(100, 125, 150, 130)];
- ryuJump.animationImages = imageArray;
- ryuJump.animationDuration = 1.1;
- ryuJump.contentMode = UIViewContentModeBottomLeft;
- [self.view addSubview:ryuJump];
- [ryuJump startAnimating];
- }
Add Comment
Please, Sign In to add comment