IPhone App Dev
레이블이
location
인 게시물을 표시합니다.
모든 게시물 표시
레이블이
location
인 게시물을 표시합니다.
모든 게시물 표시
2011년 8월 16일 화요일
[IPhone Dev] How to CGPoint compare? Here it is!
CGPoint a, b;
if(a == b)
The above codes does not work;; Ah~~~ no~~~
so you have to use below.
if
(
CGPointEqualToPoint
(location,
lastPoint
)) {
}
Mayday Timeattack - Free on Appstore
[IPhone Dev] Get point from touch
Getting location for touch!
Get the position!
-(
void
)ccTouchesEnded:(
NSSet
*)touches withEvent:(
UIEvent
*)event{
UITouch
*touch = [touches
anyObject
];
CGPoint
location = [touch
locationInView
:touch.
view
];
}
Mayday Timeattack - Free on Appstore
이전 게시물
홈
피드 구독하기:
글 (Atom)