animation question
Hello, i am BRAND NEW (and boy do i mean NEW) at this programming language and am pouring over tutorials to figure it out. I was using a tutorial from the site icodeblogs.com about animating but i cant get mine to work.
I am receiving the error:
"request for member 'view' in something not a structure or union"
Here is my code:
- (void)viewDidLoad {
[super viewDidLoad];
NSArray * imageArray = [[NSArray alloc] initWithObjects:
[UIImage imageName:@"1.png"],
[UIImage imageName:@"2.png"],
[UIImage imageName:@"3.png"],
[UIImage imageName:@"4.png"],
[UIImage imageName:@"5.png"],
[UIImage imageName:@"6.png"],
[UIImage imageName:@"7.png"],
[UIImage imageName:@"8.png"],
[UIImage imageName:@"9.png"],
[UIImage imageName:@"10.png"],
[UIImage imageName:@"11.png"],
[UIImage imageName:@"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];
}
the error occurs on the line:
[self.view addSubview:ryuJump];
Any help would be greatly appretiated =)
Thank you,
rhayne
|