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 922243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:59:53+00:00 2026-05-15T18:59:53+00:00

I have an app with long data list in the tableView, and I would

  • 0

I have an app with long data list in the tableView, and I would like to double tap the navigationBar to scroll the UITableView on top of the list (where the search is).

How can I implement that?

Thanks for your help.

  • 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-15T18:59:54+00:00Added an answer on May 15, 2026 at 6:59 pm

    The standard gesture for scrolling a tableView to the top is a single tap on the status bar. It’s enabled by default see UIScrollView Reference

    If you really want the navigation bar and you’re targeting 3.2 and up I would recommend to attach an UITapGestureRecognizer to the navigationBar.

    - (void)viewDidLoad {
        UITapGestureRecognizer* tapRecon = [[UITapGestureRecognizer alloc]
                  initWithTarget:self action:@selector(navigationBarDoubleTap:)];
        tapRecon.numberOfTapsRequired = 2;
        [navController.navigationBar addGestureRecognizer:tapRecon];
        [tapRecon release];
    }
    
    - (void)navigationBarDoubleTap:(UIGestureRecognizer*)recognizer {
        [tableView setContentOffset:CGPointMake(0,0) animated:YES];
    }
    

    If you’re targeting 3.0 or below it could become a little tricky and is not recommend.

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

Sidebar

Related Questions

i have a long list selector in which i'm displaying data sorted by date.
I have an iPhone app with a Core Data database containing a list of
I'm building an enterprise app, and have a very long list of requirements in
I have a python app which is supposed to be very long-lived, but sometimes
I have been trying to do this on an app for a long time
I have a long running console app running through millions of iterations. I want
I have got Sinatra/Rails app and an action which starts some long process. Ordinary
I have a JavaFX app with a some code like this... public class MainListener
I have an app that calls to a server and gets a long string
I have implement FragmentPagerAdapter in my app but it show only a same list

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.