You get various CGPoint s position for labels, using their properties. For example if you need to get the center point, get myLabel. Center There are functions to create and compare points as described in CGGeometry Reference So for example you can do something like : CGPoint testPoint = CGPointMake(50.0, 50.0); if(CGPointEqualToPoint(testPoint, myLabel.
Center)) { // the two points equal }.
You get various CGPoints position for labels, using their properties. For example if you need to get the center point, get myLabel.center. There are functions to create and compare points as described in CGGeometry Reference.So for example you can do something like : CGPoint testPoint = CGPointMake(50.0, 50.0); if(CGPointEqualToPoint(testPoint, myLabel.
Center)) { // the two points equal }.
Ahh I see, hate to burden you, but just a quick question, what if lets say im using a image, and when this label passes over this image it goes to hidden. Instead of making it have to be at exactly these points of mine, can I make it be like a box thats 50-50-50-50? So within this box with all sides that are 50 in lenght?
– Jacob Jul 25 at 8:41 length********** – Jacob Jul 25 at 8:41 so check the link I put. There are other methods to create and compare not just points but rects. Your goal seems to be comparing the frame properties of two views (CGRects).
Try one of the methods for checling rects equality, or maybe CGRectContainsRect() – user756245 Jul 25 at 8:49 Ahh Thanks Dude! Didn't even notice the link. Appreciated – Jacob Jul 25 at 8:52 @Jacob you are welcome, I'll make it a bit more visible for others too – user756245 Jul 25 at 8:53.
If( point. X == XCORDINATE && point. Y == YCORNDINATE ) { // do stuff } If you want to check the coördinates of a label you simply do the above, and you get the location using: CGPoint point = yourLabel.frame.origin.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.