ä»åº¦ã¯ã¿ããã¤ãã³ãã§ãã¿ããããå¾ã«æãåããããç»åãå転ããããã«ä½ã£ã¦ã¿ãã ã¿ããã®ç§»åã¯touchesMovedã§æ¤ç¥ã§ããã UIViewã«ä»¥ä¸ã®ãããªã³ã¼ããå®è£ ãã¦ã /** * ã¿ããã¤ãã³ãéå§ */ - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { // æåã®ã¿ããå°ç¹ãåã£ã¦ãã lastPoint = [[touches anyObject] locationInView:self.superview]; } /** * ã¿ãã移å */ - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event { // ã¿ããããã¦ãã座æ¨ãã²ãã CGPoint p = [[touches anyObject] loc
{{#tags}}- {{label}}
{{/tags}}