1. 헤더 등록

#import "CCTouchDispatcher.h"
 

2. 델리게이트 등록

- (void) registerWithTouchDispatcher {

[[CCTouchDispatcher sharedDispatcher] addTargetedDelegate:self priority:0 swallowsTouches:YES];

}


3. 터치 구현

- (BOOL) ccTouchBegan:(UITouch *) touch withEvent:(UIEvent *) event {

return YES;

}


- (void) ccTouchEnded:(UITouch *) touch withEvent:(UIEvent *) event {

}



Posted by DevMaster

블로그 이미지
DevMaster

공지사항

Yesterday
Today
Total

달력

 « |  » 2024.4
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

글 보관함