Thursday, 15 March 2012

iphone - Unable to retrieve simultaneous number of touches -



iphone - Unable to retrieve simultaneous number of touches -

in uiview subclass have this:

- (void) touchesbegan: (nsset*) touches withevent: (uievent*) event { uitouch* touch = [touches anyobject]; cgpoint location = [touch locationinview: self]; nslog(@"touches count: %i",[touches count]); //always shows 1 }

no matter how many fingers touch screen with, "1" output. added above touchesmoved same results.

have enabled multitouch option?

[(your uiview) setmultitouchenabled:yes];

this default false, translate touches on view 1 single touch in middle of other touches.

setting yes create view recieve 1 touch event each finger (or pen) on screen

iphone ios objective-c ipad uiview

No comments:

Post a Comment