[iPhone/iPad SDK] Touch 이벤트
간단하다. 터치를 탭쳐하고자하는 ViewController에서 다음의 함수들을 오버라이트하면 된다. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { NSLog(@"Touch begined"); UITouch *touch = [[event allTouches] anyObject]; CGPoint pos = [touch locationInView: [UIApplicationsharedApplication].keyWindow]; NSLog(@"Position of touch: %.3f, %.3f", pos.x, pos.y); } - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)eve..
Programming Tips/Objective-C
2011. 8. 30. 05:18
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
TAG
- Javascript
- lecture
- Python
- 안드로이드
- gre
- 삼식이
- 강좌
- 서울
- GX-10
- HTML5
- 자바스크립트
- K100D
- TIP
- ny-school
- php
- Android
- 팁
- google app engine
- 뽐뿌
- Writing
- java
- c++
- gae
- 속깊은 자바스크립트 강좌
- HTML5 튜토리얼
- 탐론 17-50
- 샷
- 안드로이드 앱 개발 기초
- 사진
- mini project
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함