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 Dec 20, 2012, at 11:28 AM, "Eric E. Dolecki" <edole...@gmail.com>
 wrote:

> 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 <luket...@apple.com> wrote:
> -[UIGestureRecognizer locationInView:] will give you the touch location.
> 
> Luke
> 
> On Dec 20, 2012, at 11:00 AM, "Eric E. Dolecki" <edole...@gmail.com>
>  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 
>> around) with touch while maintaining normal operation of the UITableView. 
>> 
>> 
>> 
>>   Google Voice: (508) 656-0622
>>   Twitter: eric_dolecki      XBoxLive: edolecki      PSN: eric_dolecki
>>   Imagineric
>> 
>> 
>> On Thu, Dec 20, 2012 at 1:55 PM, Luke Hiesterman <luket...@apple.com> wrote:
>> 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.
>> 
>> Luke
>> 
>> On Dec 20, 2012, at 10:40 AM, "Eric E. Dolecki" <edole...@gmail.com>
>>  wrote:
>> 
>> > 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 touchesBegan:touches withEvent:event];
>> >
>> > }
>> >
>> >
>> > I do this for moved, ended and cancelled. Began works, Moved only fires
>> > once when the UITableView is being scrolled up or down (if you touch
>> > horizontally along a cell it keeps firing), and I don't get Ended.
>> >
>> >
>> > How can I best tackle this problem? If I could put a UIView above the
>> > UITableView and have it report it's touch position normally and then
>> > somehow pass the events into the UITableView below, that's cool with me - I
>> > just don't know how to do that. In fact, I'd prefer this approach.
>> >
>> >
>> > Thanks,
>> >
>> > Eric
>> > _______________________________________________
>> >
>> > Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)
>> >
>> > Please do not post admin requests or moderator comments to the list.
>> > Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>> >
>> > Help/Unsubscribe/Update your Subscription:
>> > https://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com
>> >
>> > This email sent to luket...@apple.com
>> 
>> 
> 
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to