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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T17:56:08+00:00 2026-06-10T17:56:08+00:00

Before you bash me for duplicate, please know that I have looked nearly every

  • 0

Before you bash me for duplicate, please know that I have looked nearly every other method but none of them have helped. I have a long view in which I have a scroll view.

enter image description here

The view is 320 by 671. The scroll view has been linked to the outlet “scrollView” correctly.

The property “scrollView” has been properly declared and synthesised.

My code:

    [scrollView setScrollEnabled: YES]; 

    scrollView.contentSize = CGSizeMake(320,  671);

scrollView.clipsToBounds = YES;
scrollView.delegate = self; // I have adopted the delegate protocol in .h

So, my problem is that the view doesn’t scroll, and the scroll bar doesn’t even show up.

EDIT:

I resized the uiview to normal 320 by 460. I deleted the scroll view in xib and decided to add like this:

UIScrollView *scrollView = [[UIScrollView alloc] initWithFrame: CGRectMake(self.view.center.x, self.view.center.y, 320, 460)]; 

[scrollView setScrollEnabled: YES];

 scrollView.contentSize = CGSizeMake(320, 671); 

scrollView.clipsToBounds = YES; scrollView.delegate = self; 

[self.view addSubview: scrollView];

OK, now what happens is when I scroll the screen, the bar comes up and I can scroll around to change the bar’s position, but the actual view doesn’t scroll

  • 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-10T17:56:09+00:00Added an answer on June 10, 2026 at 5:56 pm

    Your scrollview should be 320×460 and your scrollview.contentsize should be 320×671.
    You must layout your subviews “outside” of the view in IB.

    EDIT:

    Your layout should look like this:

    http://ge.tt/api/1/files/4qGbz2N/2/blob/x675

    The textview is placed outside the views frame but inside the scrollview. The scrollviews content size should be set accordingly to fit all subviews. In this case yValue should be 550 + 128

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

Sidebar

Related Questions

I have never programed in bash before. I am reading all the files that
I know that bash -x script.sh will execute script printing each line before actual
I have bash script where i have echo before every command showing what is
Before saying anything I have to say that, albeit I'm an experienced programmer in
Before I ask the question let me state that I have attempted to google
I have made Bash scripts before and they all ran fine without #!/bin/bash at
I am very new in bash and never coded in before but this task
I have a bash script I want to run every 5 minutes from cron...
I've written bash scripts before, but I'm a little confused about how to do
On bash command-line, how to delete all letters before cursor? I know Ctrl-k deletes

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.