'Cocoa'에 해당되는 글 2건

  1. 2011.08.10 [CGPoint Compare] CGPoint 비교 구문
  2. 2011.08.10 [Objective C] Mouse(Touch) Location
CGPoint a, b;
if(a == b)
이게 안되서 찾아보니 함수를 써야하는군 ㅎ

if (CGPointEqualToPoint(location, lastPoint)) {


    }

 
끝! 
신고
Posted by ParkPill 박필
 Getting location for touch!
 
Get the position!


-(void)ccTouchesEnded:(NSSet *)touches withEvent:(UIEvent *)event{

    UITouch *touch = [touches anyObject];

    CGPoint location = [touch locationInView:touch.view];   
}

 

신고
Posted by ParkPill 박필


티스토리 툴바