라벨이 drag인 게시물 표시

SKScene 에서 SKNode 를 Touch 하여 Drag 하기

Drag 한 공간을 저장하기 위한 변수를 설정 CGPoint  deltaPoint; 전역변수로 설정하였습니다 -( void )touchesMoved:( NSSet *)touches withEvent:( UIEvent *)event {     CGPoint p = [[touches anyObject ] locationInNode : self ];     [ self enumerateChildNodesWithName : @"SKNode" usingBlock :^( SKNode *node, BOOL *stop) {         if ([node containsPoint :p]) {             CGPoint currentPoint = [[touches anyObject ] locationInNode : self ];             CGPoint previousPoint = [[touches anyObject ] previousLocationInNode : self ];             deltaPoint = CGPointMake (currentPoint. x - previousPoint. x , currentPoint. y - previousPoint. y );         }             }]; } -( void )touchesEnded:( NSSet *)touches withEvent:( UIEvent *)event {     deltaPoint = CGPointZero ; } -( void ...