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 12-20-2008, 09:35 PM   #3 (permalink)
Bollywood
Registered Member
 
Join Date: Dec 2008
Posts: 11
Bollywood is on a distinguished road
Default

Quote:
Originally Posted by CommanderData View Post
Let's play spot the coding errors game:

1) missing ; after imageView3.center = Center2
2) missing ; after imageView1.center = Center1
3) you are assigning a value with (imageView1.center = Center3), if you want to see if they are equal you need ==

Anyone else?
whoops....
the coding was correct in my app, i just copied it into the forum with errors.

I worked it out anyhow, I needed to compare the two values like this:
if (CGRectContainsPoint([imageView1 frame], Center2)) {
Bollywood is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 175,605
Threads: 94,084
Posts: 402,783
Top Poster: BrianSlick (7,990)
Welcome to our newest member, champa812
Powered by vBadvanced CMPS v3.1.0

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