I have been trying for a few days now to figure this out – I know it is something simple that I have probably missed but being new to iOS I think I missed something somewhere.
I have an array of image views in XCode and each image view is assigned a frame, what I cant seem to get to work is I want to compare each frame in each object from the array in an if else if statement sort of thing… I can’t figure out how to make the system do something like this…
if frame in the array object at index 0 is (0,0) (90,90) then do something
or if it is (90,90) (90,90) do this instead
otherwise do this…
I know how the if else statements work – I guess my main question is how do I access the frame part of the object in the array for comparison?
I am confused. Please help. I appreciate it. 🙂
I guess you’ll have to compare for each of the attributes in CGRect separately.
It could be that only the origin.x that you are concerned in your conditional statement, then you can simply to