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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 16, 20262026-06-16T01:11:20+00:00 2026-06-16T01:11:20+00:00

With Xcode 4.5.2 I created a Single View Application. Using Interface Builder I populated

  • 0

With Xcode 4.5.2 I created a Single View Application. Using Interface Builder I populated the view with an UIScrollView. In my view controller I added an outlet like so:

@interface ScrollerViewController : UIViewController {
    IBOutlet UIScrollView *_scrollView;
}

I connected the outlet using Interface Builder to the actual scroll view.

The viewDidLoad of the view controller method is

- (void)viewDidLoad
{
    [super viewDidLoad];
    [_scrollView setContentSize:CGSizeMake(320, 700)];
}

Running the application now I can scroll the scroll view like I would expect. I can see that is working because the scroll bars appear when I swipe the view.

Now when I drop a label (or a button) inside the scroll view the scroll view stops working. It does not scroll anymore. The label does not move and the scroll bars do not appear. It works (scrolls) again when I remove the label.

Any Idea what I an missing?

EDIT:

You can find my toy project on GitHub.

  • 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-16T01:11:21+00:00Added an answer on June 16, 2026 at 1:11 am

    I think that the scrolling only works if the content size is larger than the frame of the scroll view. So try making it larger if it isn`t.

    Hope this helps!

    EDIT:

    Ok, found the problem. Turn off the auto layout from IB.

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

Sidebar

Related Questions

I started up an Xcode project using the 'single view' application template and added
I started up an Xcode project using the 'single view' application template and added
I created an empty Single View application using Xcode 4.2 on OSX Lion 10.7.2
I have a project that I created by using Xcode's Single View Application template.
I downloaded xcode 4 and created a single view application with storyboard. I added
Hi I initially created a Single View application in Xcode 4.1 for iPhone. So
I have just created a new Single View Application on xCode 4.4. And it
I created story board application in XCode 4.3.3. (Single View Application -> Use storyboards
I created a single view project in xcode 4. I added a navigation bar
Have started playing with Xcode 4.2, and created a single page application using storyboard

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.