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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T14:57:12+00:00 2026-05-27T14:57:12+00:00

I am loading a page by pressing a table view cell. I put an

  • 0

I am loading a page by pressing a table view cell. I put an if statement :

       if ([webViewController webView].loading == YES) {

    NSLog(@"Its loading!");

    if (act == nil) {
        NSLog(@"Its nil");

act = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
        act.color = [UIColor blackColor];

    } else {

        act.hidden = NO;
    }

    act.center = self.view.center;
    [act startAnimating];


} else {

    [act stopAnimating];
    [act setHidden: YES];
}

But the NSLog never shows up so it is never called. But when i deploy it to my iPhone it takes A LONG TIME to load but it is still never called. What is happening here?

UPDATE – SORROUNDING CODE

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

NSLog(@"TOUCHED CELL!");

// Push the web view controller onto the navigation stack - this implicitly 
// creates the web view controller's view the first time through
[[self navigationController] pushViewController:webViewController animated:YES];

// Grab the selected item
RSSItem *entry = [[channel items] objectAtIndex:[indexPath row]];

// Construct a URL with the link string of the item
NSURL *url = [NSURL URLWithString:[entry link]];

// Construct a request object with that URL
NSURLRequest *req = [NSURLRequest requestWithURL:url];



// Load the request into the web view 
[[webViewController webView] loadRequest:req];

if ([webViewController webView].loading == YES) {

    NSLog(@"Its loading!");

    if (act == nil) {
        NSLog(@"Its nil");

act = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
        act.color = [UIColor blackColor];
        act.center = self.view.center;
        [self.view addSubview:act];

    } else {

        act.hidden = NO;
    }

    act.center = self.view.center;
    [act startAnimating];


} else {

    [act stopAnimating];
    [act setHidden: YES];
}

webViewController = nil;
webViewController = [[WebViewController alloc] init];

  }
  • 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-27T14:57:13+00:00Added an answer on May 27, 2026 at 2:57 pm

    I’m not sure what you’re trying to do here. If you want to show an activity indicator while the web view is loading, you should put that code in the webViewController. (The view controller your code is in won’t be visible after you push the web view controller anyway.)

    Ensure that the webViewController is delegate of the webView, and then override webViewDidStartLoad: and webViewDidFinishLoad: (and webView:didFailLoadWithError:) to show and hide your activity indicator.

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

Sidebar

Related Questions

I'm loading a page containing a GMaps using the ajax() method of jQuery. The
I want to show page loading spinner in my html page content using jquery
The context: My question relates to improving web-page loading performance, and in particular the
How can we change body ID while page loading? I have just developed an
I got this jQuery pre-loading script running on a index.html page loading about 10Mb
I'm getting the following two errors when loading my page: Notice: Undefined variable: realtor
I'm trying to implement the HTML5 history feature to perform AJAX loading of page
I am loading an JqueryMobile Page Home in my application and on pageinit I
I am loading a web page in my iPhone app. However the page is
I have a form loading inside my page and there is a button out

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.