Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Game Development

Reply
 
LinkBack Thread Tools Display Modes
Old 06-25-2010, 05:51 PM   #1 (permalink)
Registered Member
 
Join Date: Jun 2010
Posts: 1
rhayne is on a distinguished road
Default 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
rhayne is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 404
11 members and 393 guests
7twenty7, ChrisYates, djohnson, Duncan C, gmarro, hussain1982, Kirkout, Retouchable, SLIC, walex, xzoonxoom
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,679
Threads: 94,128
Posts: 402,921
Top Poster: BrianSlick (7,990)
Welcome to our newest member, xzoonxoom
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 08:06 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0