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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T07:26:58+00:00 2026-06-15T07:26:58+00:00

One of the tabs in my app loads a webpage that changes periodically. Because

  • 0

One of the tabs in my app loads a webpage that changes periodically. Because of this, I have the ViewController load the webView in viewWillAppear. The problem is I don’t want the webView to load every time, just when it is the first time to load, or when the webView is different. So, I have this setup:

 NSURLRequest *currentRequest = [worship request];
NSURL *currentURL2 = [currentRequest URL];
if (currentURL.absoluteString == nil) {
//loads the page
}
else {
//page is already loaded, do nothing more
}

The issue is that because of it checking for a url, it takes it a few seconds to go from one tab to another. Suggestions?

  • 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-15T07:26:59+00:00Added an answer on June 15, 2026 at 7:26 am

    Set a boolean property like webViewLoaded to YES.
    and keep it NO in the init method.

    check its value and load the webview and modify the value accordingly.

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

Sidebar

Related Questions

I have an app that works with tabs and webview. I already have it
Here's one of the tabs I have that loads a page. package realstrat.cfostudio.magazineapp; import
I have an app that uses the UITabBarController and one of the tabs is
I have an app with one main TabBarController containing two tabs that control two
I have a TabBar app with one of its tabs embedded in a NavigationController.
I have an app that has a 1 page with a DIV that changes
HI Am working for the application using tabs through entire app.In that one particular
In one of the tabs of an app I am making I have a
I'm trying to work with Tabhost, I have 2 tabs, each one loads one
I am developing an app in Android using Fragments. I have this three tabs:

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.