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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T00:58:17+00:00 2026-06-05T00:58:17+00:00

I am loading a webpage1 on an uiwebview and saving its first request on

  • 0

I am loading a “webpage1” on an uiwebview and saving its first request on an instance variable “webviewHistory”. Then, I must reuse that webview to load another page, “webpage2” (saved its first request to “webviewHistory” too), and history should start now from this request. Problem is if I execute goBack (button IBAction) from “webpage2”, I can keep going back to “webpage1” history and following.
If I check request and compare with initial saved, works! but not with redirections, for example, if I trigger request to http://www.youtube.com, request is redirectioned to m.youtube.com and first one is not saved as navigation history! how to solve it?

if (![webViewSocial.request.URL.absoluteString isEqualToString:self.webviewHistory]){
    [webViewSocial goBack];
    }
  • 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-05T00:58:18+00:00Added an answer on June 5, 2026 at 12:58 am

    UIWebviews have instance methods that allow you to go backwards and forwards with the history, without you having to track the last request. Is there a particular reason you are saving the last request specifically?

    Sample code:

    if ([webView canGoBack]) {
        [webView goBack];
    }
    

    Here is a project that is a simple uiwebview browser if you want to play with it:
    https://github.com/msencenb/UIWebView-Example

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

Sidebar

Related Questions

I have a WebView that is loading a webpage. I want to save all
I am new to fragment.I am loading url in webview inside fragment but its
I'm loading a string of HTML into a UIWebView through loadHTMLString. It produces a
I am loading a webpage into a webview from the database with the loadDataWithBaseURL()
I have some javascript code on my webpage that is loading some divs onto
I'm loading third party webpage that contains following code <script type=text/javascript> onDomReady(function() { some_code1;
I have a UIWebView which is loading a webpage. The webpage has a div-element
I am using a UIWebView to display HTML formatted text. I am not loading
I'm downloading a webpage, and then loading strings from the page into a WPF
I am loading a local webpage in a WebView in my application. Is there

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.