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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T08:22:39+00:00 2026-06-05T08:22:39+00:00

I have found a tutorial on this website: http://jduff.github.com/2010/03/01/building-a-searchview-with-uisearchbar-and-uitableview/ …but I am stuck here:

  • 0

I have found a tutorial on this website:

http://jduff.github.com/2010/03/01/building-a-searchview-with-uisearchbar-and-uitableview/

…but I am stuck here:

- (void)searchBarSearchButtonClicked:(UISearchBar *)searchBar {
// You'll probably want to do this on another thread
// SomeService is just a dummy class representing some 
// api that you are using to do the search
NSArray *results = [SomeSerivece doSearch:searchBar.text];

[searchBar setShowsCancelButton:NO animated:YES];
[searchBar resignFirstResponder];
self.tableView.allowsSelection = YES;
self.tableView.scrollEnabled = YES;

[tableData removeAllObjects];
[tableData addObjectsFromArray:results];
[self.tableView reloadData];
}

I can’t understand what I have to write instead of SomeService. It is under comment, but I can’t understand. I already have an array with all the content of the table view…so?? What do I have to do??

  • 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-05T08:22:40+00:00Added an answer on June 5, 2026 at 8:22 am

    It looks like some service is the class that actually searches the array based on xyz criteria and returns the results. If I remember correctly UISearchBar automatically does this for you now – it is possible that the tutorial you are using is outdated.

    I haven’t used it personally, but the following may be more helpful; it uses a UISearchDisplayController, which handles the search results for you instead of forcing you to do it manually.

    http://ygamretuta.me/2011/08/10/ios-implementing-a-basic-search-uisearchdisplaycontroller-and-interface-builder/

    If you’d rather use the first tutorial, you’ll have to create/find a search class to use on the array.

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

Sidebar

Related Questions

I was reading this tutorial from the DNN website http://www.dotnetnuke.com/Community/Blogs/tabid/825/EntryId/2675/DotNetNuke-Skinning-101-Part-2.aspx I found the tutorial
I have just found this great tutorial as it is something that I need.
I am playing around with this tutorial I found on a website. It is
I am trying to follow this tutorial: http://playcontrol.net/ewing/jibberjabber/opengl_vertex_buffer_object.html And I have received this error:
I have found a Tutorial here on how to implement drag and drop in
Can anyone please help. I'm following a tutorial found here as I have a
Okay, so I have searched this site and found many tutorials on how to
I've viewed tutorials from: http://www.raywenderlich.com/ and similar articles. I've downloaded and viewed github: https://github.com/mwaterfall/MWFeedParser
I found this great tutorial on how to use JSON to retrieve Twitter updates,
Im just new to Java and I found this good tutorial for creating a

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.