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

View Single Post
Old 04-23-2009, 12:13 AM   #1 (permalink)
dcwhat
New Member
 
Join Date: Apr 2009
Posts: 71
Default Image iPhone Borders

Code:
.h
	IBOutlet UIImageView *test;
@property(nonatomic,retain) IBOutlet UIImageView *test;
.m
@synthesize test;
-(void)boundsCheck {
	if(test.center.x > self.view.bounds.size.width || test.center.x < 0) {
		NSLog(@"you hit the X axis boarder");
	}
}
i have an image that im moving around and im trying to see if it will send me a message in my log, when ever i drag the image over to the x axis bound. Can someone help me please.


also just a quick not, im not sure how to use varibles i tried
int x = 0;
then
x++;
how do i should it in my log?
NSLog(@"%x") <-- is that right?
dcwhat is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,669
Threads: 89,155
Posts: 380,383
Top Poster: BrianSlick (7,110)
Welcome to our newest member, jarrettshawn
Powered by vBadvanced CMPS v3.1.0

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