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

Mockup & CodeGen, iPhone & iPad
($9.99)

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

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

Thread: Random Rocks
View Single Post
Old 02-06-2010, 12:23 PM   #37 (permalink)
kdp8791
Registered Member
 
Join Date: Sep 2009
Posts: 57
Default

Quote:
Originally Posted by Sesa View Post
Yir, here

Code:
-(void)CheckCollision {
	
		if (CGRectIntersectsRect(flakeImage.frame, Elephant.frame)) {
			alert = [[UIAlertView alloc] initWithTitle:@"Enter Some Text" message:@"" delegate:self cancelButtonTitle:@"Done" otherButtonTitles:nil];
			
		}
	
}

Its says: request for member 'frame' in something not a structure or union
I am assuming that your code when you create the Image is similar to this:

Code:
		UIImage *meteorImage = [UIImage imageNamed:@"flake.png"];
		
		myRock= [[UIImageView alloc] initWithImage: meteorImage];
With obviously more to it. It looks as though you are actually using the UIImage, rather than the UIImageView. That is the cause of your error. Hopefully replacing that will get rid of the error. Try building and running that, when the two images collide and you still have problems. Just reply and let me know.
__________________
kdp8791 is offline   Reply With Quote
 

» Advertisements
» Online Users: 293
20 members and 273 guests
ADY, antonwilliams, dacapo, dcool, HemiMG, iosdevjtp, jakerocheleau, leahov, MarkC, masc2279, morands, MozyMac, PsychoChris, sly24, smithdale87, sneaky, Sunny46, thh022, timle8n1, vogueestylee
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,877
Threads: 89,222
Posts: 380,720
Top Poster: BrianSlick (7,129)
Welcome to our newest member, peterkessler45
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:12 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.