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

View Single Post
Old 02-08-2010, 12:05 PM   #31 (permalink)
wilky94
Registered Member
 
wilky94's Avatar
 
Join Date: Dec 2009
Location: Seaham UK
Age: 17
Posts: 257
wilky94 is on a distinguished road
Send a message via AIM to wilky94 Send a message via Skype™ to wilky94
Default

Quote:
Originally Posted by wilky94 View Post
Code:
if (touch.x, touch.y = one) {
		
	}
request for member 'x' in 'touch' which is in a non-class type of 'UITouch'

do you know the exact code?

I will have to get back to you tomorrow please reply.
I got it working you need:
Code:
if (CGRectContainsPoint(one.frame, location)) {
	
		one.center = location;
		
	}
wilky94 is offline   Reply With Quote
 

» Advertisements
» Online Users: 495
8 members and 487 guests
blackcat_tq, Domele, iekei, lzwasyc, nguyenhieu129, Punkjumper, scubadivingfool, Son of a Beach
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,446
Threads: 94,031
Posts: 402,605
Top Poster: BrianSlick (7,978)
Welcome to our newest member, larueta13
Powered by vBadvanced CMPS v3.1.0

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