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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T05:31:15+00:00 2026-05-31T05:31:15+00:00

I am implementing the twitter app like animation of the #Discover tab. When the

  • 0

I am implementing the twitter app like animation of the #Discover tab. When the user taps the searchbar, the navigationBar disappears, the tableView movies up and the cancel button shows up on the searhbar. Here’s the code…

- (BOOL)searchBarShouldBeginEditing:(UISearchBar *)searchBar
{
    [self.navigationController setNavigationBarHidden:YES animated:YES]; 
    [self.searchBar setShowsCancelButton:YES animated:YES];
    [self.scrollView setContentOffset:CGPointMake(0, 55) animated:YES];
    [self.view addSubview:backImgView];
    return  YES;
}

This works perfectly, but it takes about half a second delay only the first time I tap the searchbar, After that its fast.
Any Ideas?

  • 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-31T05:31:16+00:00Added an answer on May 31, 2026 at 5:31 am

    I think the animation you are looking for or trying to code , can be done automatically if you use UISearchDisplayController. UISearchDisplayController is generally used to display results.

    UISearchBar *searchBar_ = [[[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, 320, 44)] autorelease]; 
    
    UISearchDisplayController *searchDisplayController_ = [[UISearchDisplayController alloc] initWithSearchBar:searchBar_ contentsController:self] ; 
    
    self.tableView.tableHeaderView = searchBar_;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It seems like implementing web-app like twitter/facebook-wall needs 1 huge feeds relational table (+
I am implementing a dashboard plus action bar UI, like in the Twitter app:
I am implementing a Twitter app, where the app needs to cache details of
I'm looking at implementing an app getting Twitter authorization via Oauth in Java. The
I am implementing Twitter integration in my app. But setintialtext showing empty dialog box.
Iam implementing facebook and twitter using sharekit for an iphone app. How can we
Im implementing an app that shows some Twitter data, when is working on wifi
I've an idea of Twitter like website which I am implementing on my own.
I'm implementing an app for a micro blog service, something similar to twitter. I've
So, I am implementing twitter via twitter widget pro into a wordpress theme. I'm

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.