'compare'에 해당되는 글 2건

  1. 2011.08.17 [IPhone Dev] CGPoint Compare (1)
  2. 2011.08.10 [CGPoint Compare] CGPoint 비교 구문

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 박필
CGPoint a, b;
if(a == b)
이게 안되서 찾아보니 함수를 써야하는군 ㅎ

if (CGPointEqualToPoint(location, lastPoint)) {


    }

 
끝! 
신고
Posted by ParkPill 박필