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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T01:57:06+00:00 2026-06-07T01:57:06+00:00

I have make like text field search. In which i have first create text

  • 0

I have make like text field search.

In which i have first create text field and also add new UISearchViewController

Now i have set

- (void)textFieldDidBeginEditing:(UITextField *)textField
{
        [textField resignFirstResponder];
    self.searchDisplayController.searchBar.hidden = FALSE;
    [self.searchDisplayController.searchBar becomeFirstResponder];
    [self.searchDisplayController setActive:YES animated:NO];
}

but i have seen only search display controller and black background with out keyboard

when i directly pressed in search bar it’s shows keyboard

what should i do for show keyboard in UISearchBarController from above method

EDIT

Please download my code from here http://sourceforge.net/projects/locationdemo/files/LocationDemo.zip/download

  • 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-07T01:57:07+00:00Added an answer on June 7, 2026 at 1:57 am

    Finally I have my answer which want to share with every one

    - (void)textFieldDidBeginEditing:(UITextField *)textField
    {
            [textField resignFirstResponder];
            NSTimer *theTimer = [NSTimer scheduledTimerWithTimeInterval:1 target:self selector:@selector(keyboardWasShown:) userInfo:nil repeats:NO];
    }
    
    - (void)keyboardWasShown:(NSNotification *)notification
    {
        [self.searchDisplayController.searchBar becomeFirstResponder];
        self.searchDisplayController.searchBar.hidden = FALSE;
        CGSize keyboardSize = [[[notification userInfo] objectForKey:UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
        CGRect aRect = self.view.frame;
        aRect.size.height -= keyboardSize.height;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a regular text field on a view and I'd like to make
So right now I have a text field with a button (add+) below it.
I have a input box which looks like below, <input id=basic-search type=text value=Enter keyword
i want to make a text box like stackoverflow have for the tag at
I have to make a page that look like painting below, but: field 1
I have a listview with a checkbox, an image and a text field. Now
I'm trying to make a text field and a button appear like they are
friends. I have a 'make'-like style file needed to be parsed. The grammar is
I have to make something like an accordion, but I want it to fade
I have to make a something like a Gantt Diagram. This is what I

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.