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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T00:08:32+00:00 2026-05-25T00:08:32+00:00

I want to add activity indicator or MBProgressHUD when i click on row of

  • 0

I want to add activity indicator or MBProgressHUD when i click on row of table view and disapear when next view’s table laod.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
if (indexPath.section == 1 && indexPath.row == 0) {
    /*here add activity indiavtor*/

    iMapViewAppDelegate *appDelegate = (iMapViewAppDelegate *)[[UIApplication sharedApplication] delegate];
    NSString *requestString = [NSString stringWithFormat:@"http://maps.googleapis.com/maps/api/directions/xml?origin=%@&destination=%@,OK&sensor=false",startField.text,endField.text]; 
    NSURL *url = [[NSURL alloc] initWithString:requestString];
    NSXMLParser *xmlParser = [[NSXMLParser alloc] initWithContentsOfURL:url];

    //Initialize the delegate.
    xml1 *parser = [[xml1 alloc] init];

    //Set delegate
    [xmlParser setDelegate:parser];


    //Start parsing the XML file.
    BOOL success = [xmlParser parse];


    if(success){
        NSLog(@"No Errors");
        appDelegate.legAray=[parser.listofPoint copy];
        appDelegate.sAray=[parser.ListofSteps1 copy];
        arySteps=[[NSArray alloc]init];
        arySteps = [parser.ListofSteps1 arrayByAddingObjectsFromArray:parser.listofPoint];
        appDelegate.NoofRow=0;
        appDelegate.NoofRow=[arySteps count];
        NSLog(@"%d",appDelegate.NoofRow);
        NSLog(@"%@",arySteps);
        sObject=[[Sleg alloc]init];
        sObject=[appDelegate.legAray objectAtIndex:0];

    }
    else
        NSLog(@"Error Error Error!!!");


        controller= [TableView alloc];
        controller.arayStep=[arySteps copy];
        [controller initWithNibName:@"TableView" bundle:nil];
        [self.navigationController pushViewController:controller animated:YES];
        [controller release];
    [tableView deselectRowAtIndexPath:indexPath animated:YES];
}

}
above code is for selecting row.In when this function call then view add activity indicator or MBProgressHUD and release in next view. How do that?

  • 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-25T00:08:32+00:00Added an answer on May 25, 2026 at 12:08 am
    (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
    if (indexPath.section == 1 && indexPath.row == 0) 
    {
    
        chkIndexPath = indexPath.row;    
        activity.hidden = FALSE;
        [activity startAnimating];
    
        [self performSelector:@selector(myFunction) withObject:nil afterDelay:0.0];
        [tableView deselectRowAtIndexPath:indexPath animated:YES];
    }
    - (void)myFunction
    {
      //your code. use chkIndexPath instead of indexPath.row
    }
    

    set activity.hidden = TRUE; in viewwillAppear.

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

Sidebar

Related Questions

In my application i want to add activity indicator under UItableview where tableview will
I want to add an activity Indicator View inside and Alert Box is it
I have create the list-activity.Now I want to add new view with with map
In my iPhone app, I want to add activity indicator on top of a
I want to add a activity indicator in alertView. How to do this?
I have dbml with single table users i want add partial class for User
I want to add tabs to the layout of my activity, but I don't
I want to add Back button to my activity to be able to reopen
Hey, I want to display an activity indicator on the right corner of my
i av an activity which extends listactivity. i want to add a textview and

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.