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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T21:33:58+00:00 2026-06-17T21:33:58+00:00

I have project is single view app and add to view controller scrollview with

  • 0

I have project is single view app and add to view controller scrollview
with parameters

[scroller setScrollEnabled:YES];
[scroller setContentSize:CGSizeMake(0, 960)];

if screen resolution is 320×480 then we have some invisible "screen 2" (320×480)
how do I make that – did load app at position "screen 2" and after that
I can scroll not down, but to up at start launch app.

for example

How to release that?

  • 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-17T21:33:59+00:00Added an answer on June 17, 2026 at 9:33 pm

    you have to give the scrollview a proper content size, depending on the screen size.

    Assuming that the scrollview is fullscreen in portrait:

    //------------------------------------------
    - (void)viewDidLoad{
      [super viewDidLoad];
    
      CGRect screenSize = [[UIScreen mainScreen] bounds];
    
      [scroller setScrollEnabled:YES];
      [scroller setContentSize:CGSizeMake(0, screenSize.size.height)];
    
    }
    
    //------------------------------------------
    
    - (void)viewDidAppear:(BOOL)animated{
      [super viewDidAppear:animated];
    
      CGRect screenSize = [[UIScreen mainScreen] bounds];
    
      CGPoint scrollPoint = CGPointMake( 0.0, screenSize.size.height / 2);
    
      [scroller setContentOffset:scrollPoint animated:YES];
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I started my app as a single view application. I have the view with
I have a project that I created by using Xcode's Single View Application template.
I have created a blank project using the single view option on Xcode templates.
Is it possible to have multiple Qt project files in a single Eclipse project?
I have a single image file in a folder in my Eclipse project that
I have two libraries and a single application assembly project layout and I'm wondering
We have an ASP.Net MVC project that will start with a single web server
I have a multi-module project. I thought I can compile only a single module
I'm working on a project that will have a single table holding lots and
I have a very simple web part. I have a single grid view, which

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.