Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4621776
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:45:00+00:00 2026-05-22T02:45:00+00:00

In the example project aurioTouch application delegate the code indicates (and I’ve read elsewhere)

  • 0

In the example project aurioTouch application delegate the code indicates (and I’ve read elsewhere) that the touch event object passed to touchesBegan, touchesMoved, and touchesEnded will be the same object while it is still a single set of user actions, such as touching and moving a finger. When I override UIScrollView and implement these methods, the events that I get back are different objects. What am I missing here?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T02:45:01+00:00Added an answer on May 22, 2026 at 2:45 am

    You are right that the UIEvent is reused when delivering touch events for one gesture. From the docs:

    A UIEvent object representing a touch
    event is persistent throughout a
    multi-touch sequence; UIKit reuses the
    same UIEvent instance for every event
    delivered to the application. You
    should never retain an event object or
    any object returned from an event
    object. If you need to keep
    information from an event around from
    one phase to another, you should copy
    that information from the UITouch or
    UIEvent object.

    I presume the difference in behavior for your case results from the special event handling done by UIScrollView. Scroll views delay event delivery because they need to detect a scrolling intent by the user (swipe gestures). So they have to have a way of keeping UIEvents around—probably copying them to make sure they retain their original state. This might be the reason you see different objects.

    Note that all of the above is only guessing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there good example code or a test project for explaining the Model–view–presenter (MVP)
A specific example: becoming familiar with django's project source code (core, contrib, utils, etc.).
Say for example you're getting a web app project that interacts with a database.
Is there a succinct but complete example project or tutorial that brings together the
I recently started a project, using Apple's Utility Application example project. In the example
I am having problems finding an example project that uses NHibernate 2.1.0. Anyone know
I'm trying to copy over some example code into my own project. The example
I've created a super simple example application using Macruby. The problem is that the
This question is refers to Apple's example TableSearch project that implements a searchable table
Anybody aware of a best practices or example project out there that uses ASP.NET

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.