I need a example of how to use CGPoint with a if statement to check the x and y coordinates
like something like this
if(CGPoint == (XCORDINATE, YCORDINATE)){
do stuff
}
and then i need a example of how to check the x and y coordinates on a label
if(mylabel == (xpoint, ypoint)){
do stuff
}
Thanks
You get various
CGPoints position for labels, using their properties. For example if you need to get thecenterpoint, getmyLabel.center.There are functions to create and compare points as described in CGGeometry Reference.
So for example you can do something like :