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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T06:15:18+00:00 2026-06-10T06:15:18+00:00

In Safari, when you Visit a very long page, e.g. w3c.org, scroll down to

  • 0

In Safari, when you

  1. Visit a very long page, e.g. w3c.org, scroll down to somewhere in the page
  2. Kill Safari
  3. Open Safari again, it will automatically remember your last position within a page

How to do this in UIWebView? Or is it possible?

Thanks.

  • 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-10T06:15:20+00:00Added an answer on June 10, 2026 at 6:15 am

    The simplest way I can think of to achieve this would be to save the web views contentOffset.y and then set it back to what you saved the next time it is loaded.

    Saving this into NSUserDefaults will allow the value to be restored even if the app is killed, or even if an update is installed.

    [[NSUserDefaults standardUserDefaults] setFloat:myWebView.scrollView.contentOffset.y forKey:@"offsetKey"];
    [[NSUserDefaults standardUserDefaults] synchronize];
    

    Then to restore:

    - (void)webViewDidFinishLoad:(UIWebView *)webView
    {
        [myWebView.scrollView setContentOffset:CGPointMake(0, [[NSUserDefaults standardUserDefaults] floatForKey:@"offsetKey"]) animated:YES];
    }
    

    ^^Untested, let me know how it works for you.

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

Sidebar

Related Questions

If Safari/Firefox have already downloaded files then they keep a download manager window open.
Safari defaults to only visit form elements when using the tab key for navigation.
Please visit this page: http://hyindia.com/demo/agenda/index.html On Top Menu, You can see the Buttons/Links and
I have this problem. When you visit page where is PHP code: $_SESSION['test']++; echo
I have html page with 2 links like <a href=http://www.w3schools.com/>Visit W3Schools</a> <a href=http://www.w4schools.com/>Visit W4Schools</a>
Made a simple script that hide/show a hidden div. The page automatically adjusts its
If a user visits my websites example, from Safari Mobile how could I place
how can i detect if someone visits my website using safari or iexplorer via
Safari gives resize handles for text-areas. anyone knows how to stop that? thanx
Safari and Chrome seem to be adding extra padding/margins in regards to the text

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.