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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T02:31:42+00:00 2026-05-20T02:31:42+00:00

i got a question here. Whenever the User select on any of the row,

  • 0

i got a question here. Whenever the User select on any of the row, i want to call that method searchBarCancelButtonClicked to perform [searchBar resignFirstResponder]; how can i do that?

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath  {

    NSString *KeyCor;
    NSString *YKeyCor;
    NSString *DesName;
    Service *aService;

    aService = [appDelegate.blocks objectAtIndex:indexPath.row];

    KeyCor=[aService xcoordinate];
    YKeyCor=[aService ycoordinate]; 
    DesName=[aService name];

    Service *s = [[Service alloc] initWithLat:YKeyCor andLong:KeyCor andName:DesName];
    MapViewController *mvController = (MapViewController *)[MapViewController sharedInstance];
    mvController.view.alpha = 1;

    //[self.navigationController pushViewController:mvController animated:YES];
    [mvController showMarkingOnMap:s];


    //self.searchBarCancelButtonCLicked; <--- fail

    ///
}

- (void)searchBarCancelButtonClicked:(UISearchBar *)searchBar

{
    sBar.showsCancelButton = NO;
    [tableData removeAllObjects];
    [tableData addObjectsFromArray:dataSource];

    [searchBar resignFirstResponder];

    sBar.text = @"";

    [myTableView removeFromSuperview];

}
  • 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-20T02:31:43+00:00Added an answer on May 20, 2026 at 2:31 am
    - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
    {
    
       ...
    
       [self searchBarCancelButtonClicked:whateverYouNamedYourSearchbar];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Stupid question here. Got total brain-lock today. I want to manually select a specific
Newbie SQL question here --> I've got an Occurrences table that contains a row
Here is a challenge question I've got from Linux system programming lecture. Any of
After posting the question here , I got to know that NoSQL are better
Quick question here, i've got a process running that grabs RSS feeds and adds
Basically I got 2 question here: once the user given permission to a facebook
I got a simple question here Let's suppose we have a codebase that employs
This is an error that came up after I got a previous question here
Yesterday I asked a question here that got more momentum that what I thought
got a few question here. i just want to get the data from the

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.