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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T08:40:16+00:00 2026-05-15T08:40:16+00:00

I have a tableview with an indexed scrollbar on the right side that shows

  • 0

I have a tableview with an indexed scrollbar on the right side that shows the letters A-Z and has a magnifying glass icon at the top ({search}). All of the letters in the scrollbar appropriately take the user to the corresponding section except for the magnifying glass, which takes the user to “A” and keeps the searchBar hidden.

I just want it to go to the very top of the table so that the searchBar shows up when the user taps the magnifying glass icon in the scroll bar. I’ve been looking all over for ways to do this, but I can’t find any way shy of adding the searchBar to the first tableCell and it’s own section, which I’d prefer not to do unless it’s the only way.

Thanks so much!

  • 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-15T08:40:16+00:00Added an answer on May 15, 2026 at 8:40 am

    Try this post – I wanted the same sort of thing a while ago, hope it helps.

    In short, I put the search bar in the header view of the table view, then adjust it’s contentOffset to show it when the {search} is touched.

    Actually I was able to mimic the behaviour of Apple apps too, so when the view appears each time the search bar is re-hidden, if required – I used UISearchDisplayController to handle the UISearcBar for me. Here’s the bit of code I put in my UITableViewController class to do this:

    - (void)viewWillAppear:(BOOL)animated
    {
      [super viewWillAppear:animated];
    
      if (self.tableView.contentOffset.y <
          self.searchDisplayController.searchBar.frame.size.height)
        {
          self.tableView.contentOffset =
            CGPointMake(0, self.searchDisplayController.searchBar.frame.size.height);
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have all that data with me in tableview but when i dont know
I have a plist file that is brought into a tableview, and now want
Hey guys, I have a Table View that has been populated with 21 data:
I have tableview that scroll vertically. My question is when first this view is
I have a grouped table view with textfields in the tableview. For the keyboard
I ran into a strange issue with my indexed tableview's section index titles. The
I have a UITableView with a UISearchBar at the top of it. I also
In my application I have a tableview which a couple of cells on click
UItableView style not changing. I have a tableView controller as one of the tabs
I have very custom TableView like Add Contact View in iPhone's Contacts. I like

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.