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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T01:29:11+00:00 2026-06-06T01:29:11+00:00

Im new to objC and Im currently experimenting on UISearchDisplayController. Basically I have an

  • 0

Im new to objC and Im currently experimenting on UISearchDisplayController. Basically I have an array of string as my data and I use UISearchBarDisplayController to filter my data. Im able to retrieve the correct values when I enter my searchText into the search bar. However, the tableView disappears when my searhBar text is empty.

Would it be possible to prevent the tableView from hiding in this such case. What I want is to just to display all the values in my array in the table if the searchBar text is empty.

I checked the hidden/alpha/frame property of the table and tried to fix my issue here but I think Im in the wrong path here. I’m thinking if i need to subclass the UISearchDisplayController and override the [setActive:YES animated:YES];? Any hint would be appreciated.

  • 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-06T01:29:13+00:00Added an answer on June 6, 2026 at 1:29 am

    I ended up working with UISearchBar and UITable.
    So here are the scenarios I encountered.

    1. Display the the UITable when the searchBar is clicked.
    2. UITable shows all the data from my plist when searchText is empty.
    3. UITable shows filtered results from my plist that matches the searchText.
    4. Dismiss the keyboard on press of the search button but don’t disable the cancel button on the searchBar.
    5. Remove the UITable when cancel button is press.

    I don’t have the animation for showing the table for now but this works for me. Also, I allowed the user interaction and scrolling on my table during search so no overlay needed in this case. Glad its working now. 🙂

    I created a sample project for those who might need. Here is the link. Apologies for a messy code and leaks issues. Just posted this to share. 🙂

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

Sidebar

Related Questions

I am new to ObjC. I have a method in my controller class called
I'm new on objc/Cocoa and I never use C before. I've a problem to
i am new in ObjC and iPhone. I downloaded an example of data sharing
Possible Duplicate: ObjC/Cocoa class for converting size to human-readable string? I'm new in Cocoa.
I am pretty new to OSX programming, or to the use of ObjC. I've
I am fairly new to iPhone/ObjC programming, though I have several years of experience
I have an objc program and i would like to use a widget that
I'm still pretty new to ObjC. I noticed that it's pretty standard everywhere to
Hi i'm fairly new to objC and i am hoping someone can help me
New to objective-C, #import <objc/objc.h> #import <Foundation/Foundation.h> @interface Test:NSObject { int x,y, abc; NSString

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.