In other language we use the following.

CGPoint a, b;
if(a == b)
 
 
But in the objective c manner it is like this.

CGPoint location;
CGPoint lastPoint; 


if (CGPointEqualToPoint(location, lastPoint)) {


    }

 
pretty straight forward.

Have a good day. 
Posted by ParkPill 박필