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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T01:01:24+00:00 2026-05-27T01:01:24+00:00

If I want to retain a UIWebView for reuse later, is it possible? For

  • 0

If I want to retain a UIWebView for “reuse” later, is it possible? For instance, say that UIWebView on a specific site is important to your app, but not the only thing in it. Maybe the website takes awhile to load. When the user navigates away from the UIWebView, I would like to keep a reference to the UIWebView and its contents, so if the user decides to reopen the webview, it’s exactly where he or she left it.

I’ve tried this and it doesn’t seem to work for me. In my situation, on the iPad, there is a partial screen UIWebView that I’m keeping a strong reference to, and if the user desires, I’m presenting a full screen modal view and inserting that UIWebView reference into a synthesized UIWebView property of the View Controller. When the modal view comes in full screen, the background is just white and the webview is not displaying anything, even though the existing webview that I’m keeping a pointer for has already had activity.

@interface FullScreenWebView : UIViewController
@property (nonatomic,strong) IBOutlet UIWebView *theWebView;

@interface HalfScreenWebView : UIViewController
@property (nonatomic,strong) IBOutlet UIWebView *aWebView;

//in some other class, pretend halfscreenWebView is an object representing HalfScreenWebView
UIWebView *existingWebView = halfscreenWebView.aWebView;
FullScreenWebView *full = [[FullScrenWebView alloc] initWithNibName:@"FullScreenWebView" bundle:nil];
full.modalPresentationStyle = UIModalPresentationStyleFullScreen;
full.theWebView = existingWebView;
[self presentModalViewController:full animated:YES];
  • 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-27T01:01:25+00:00Added an answer on May 27, 2026 at 1:01 am

    You can use NSCoding to archive and unarchive the UIWebView between uses since it conforms to the NSCoding protocol.

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

Sidebar

Related Questions

I have one array. I want that array to retain its value between function
I have the following regular expression working in sed but I want to retain
I currently have a string, say $line='55.25040882, 3,,,,,,' , that I want to remove
My app is similar to facebook. I want to retain the userID/Username upon login
I would like to crop an image but I want to retain the part
I have a UISplitView-based app with a UIWebVIew in the Detail View. I want
I am having jquery tabs inside the parent menus, I want to retain the
Lucene's StandardAnalyzer removes dots from string/acronyms when indexing it. I want Lucene to retain
I am using recursion and I want an Integer object to retain its value
I have a class of images I want to enlarge (but remain in place)

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.