Re: touch position for UITableView

2012-12-20 Thread David Duncan
Luke mentioned this earlier – you need to implement the delegate method and ensure your recognizer doesn't conflict with others (in particular the table view's own pan gesture recognizer in this case). On Dec 20, 2012, at 12:07 PM, Eric E. Dolecki wrote: > Okay - so I set up a UIPanGestureReco

Re: touch position for UITableView

2012-12-20 Thread Eric E. Dolecki
Okay - so I set up a UIPanGestureRecognizer and it's working great. It keeps firing if I drag into and around my UITableView. But I want that UITableView to work (scrolling up/down) while still getting x,y from the gesture recognizer. If I am scrolling the table, the gesture recognizer doesn't fire

Re: touch position for UITableView

2012-12-20 Thread David Duncan
On Dec 20, 2012, at 11:28 AM, "Eric E. Dolecki" wrote: > over time though or only when it's triggered? Depends on which gesture recognizer you use. You probably want a pan recognizer for this. -- David Duncan ___ Cocoa-dev mailing list (Cocoa-dev@l

Re: touch position for UITableView

2012-12-20 Thread Luke Hiesterman
You can call the method at any time, but you'd probably just call it from your gesture handler which will fire for UIGestureRecognizerStateChanged as the touch moves. I'd suggest reading up on UIGestureRecognizer. It's a valuable class. Event Handling Guide for iOS: Gesture Recognizers Luke On

Re: touch position for UITableView

2012-12-20 Thread Eric E. Dolecki
over time though or only when it's triggered? Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edolecki PSN: eric_dolecki Imagineric On Thu, Dec 20, 2012 at 2:02 PM, Luke Hiesterman wrote: > -[UIGestureRecognizer locationInView:] will

Re: touch position for UITableView

2012-12-20 Thread Luke Hiesterman
-[UIGestureRecognizer locationInView:] will give you the touch location. Luke On Dec 20, 2012, at 11:00 AM, "Eric E. Dolecki" wrote: > I need to continually get the touch point though... In essence I'd like to > place a UIImageView (of a touch ring) above everything, drive it (move it > arou

Re: touch position for UITableView

2012-12-20 Thread Eric E. Dolecki
I need to continually get the touch point though... In essence I'd like to place a UIImageView (of a touch ring) above everything, drive it (move it around) with touch while maintaining normal operation of the UITableView. Google Voice: (508) 656-0622 Twitter: eric_dolecki XBoxLive: edo

Re: touch position for UITableView

2012-12-20 Thread Luke Hiesterman
You're best off using a UIGestureRecognizer to track the touches. You can probably wire up a stock UILongPressGestureRecognizer to do what you need. Otherwise you can always write a custom recognizer that just tracks touches. Just make sure it does not prevent recognition of other gestures. Luk

touch position for UITableView

2012-12-20 Thread Eric E. Dolecki
Greetings all, I have the need for getting the touch position for a UITableView. I subclassed UITableView and override the touches methods. Like so: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { [self.nextResponder touchesBegan:touches withEvent:event]; [super touch