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

  • SEARCH
  • Home
  • 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 7804505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T01:56:14+00:00 2026-06-02T01:56:14+00:00

With my current table view controller, I’d like to implement a touch and hold

  • 0

With my current table view controller, I’d like to implement a touch and hold feature very similar to how the click-wheel iPod’s On-The-Go queueing feature used to work.

I’ve been reading a few posts and have seen suggestions for using UILongPressGestureRecognizer. Whilst I could do that, it does bring up a couple more questions for me:

  1. If a long press is detected, how can I prevent the
    didSelectRowAtIndexPath method from being called (Or do I
    completely avoid using it and implement a Tap gesture recogniser in
    my UITableViewCell subclass?)
  2. How would I go about animating the cell once a long-press has been
    detected similar to the iPod style (where the highlighted cell
    flashes/opacity of highlight goes up and down a few times).

Would appreciate some guidance.

  • 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-06-02T01:56:17+00:00Added an answer on June 2, 2026 at 1:56 am

    If you use the long press recognizer, and it fires, didSelectRowAtIndexPath will not fire.

    You can detect the state of the gesture recognizer and animate your cell after the ‘start’ state is detected, and end the animation when the ‘end’ state is detected.

    if (gestureRecognizer.state == UIGestureRecognizerStateBegan) …
    if (gestureRecognizer.state == UIGestureRecognizerStateEnded) …

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

Sidebar

Related Questions

How do you create a temporary table exactly like a current table in a
I have a navigation controller with a table view. In most tutorials I've read
In my view, I would like to insert an HTML table detailing a user's
I already have a view controller, is it possible to attach a table view
I have a Nav controller that starts at a table view. Each row pushes
My current table structure is 12 column, each representing month. I need to dynamically
I'm adding a select box to a form by cloning the current table row,
I want to display all records from table of current autorized user in my
My current implementation of an Hash Table is using Linear Probing and now I
I have a data Table with numbers formatted according to the current regional settings.

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.