Guest User

Untitled

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