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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T00:32:36+00:00 2026-05-20T00:32:36+00:00

i have one scrollview and 4 UIviewcontrollers with xib files now i want to

  • 0

i have one scrollview and 4 UIviewcontrollers with xib files now i want to add 4 viewcontrollers to scrollview

and also the scroll is enabled for four viewcontrollers

any one know this plz answer this problem

  • 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-05-20T00:32:37+00:00Added an answer on May 20, 2026 at 12:32 am

    Just add them. What’s the problem?

    // this loads a view controller from a nib
    controller = [[UIViewController alloc] initWithNibName:@"YourNibsName" bundle:nil];
    
    // this adds the viewcontroller's view to the scrollview
    [scrollView addSubview:controller.view];
    
    // place the subview somewhere in the scrollview
    CGRect frame = controller.view.frame;
    frame.origin.x = 600;
    controller.view.frame = frame;
    
    // don't forget to release the viewcontroller somewhere in your dealloc
    [controller release];
    

    Do this for all your four controllers.

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

Sidebar

Related Questions

I'd like to have one big scrollview with horizontal scrolling enabled. Within this scrollView
I have scrollview widget with one child (myrect) I want to detect the touch
I know that ScrollView can have only one Child but in my case I
have one time consuming step that flattens a bunch of files. basically i'd like
I have a pinch gesture recognizer attached to my scrollView (one on top of
I have a scroll view which has one UIView inside which contains the content.
I have a scroll view holding a few images, each one is around 100KB.
I have one scrollView and there is ImageView in it but when i click
i have a scrollview ,it include one textView, the textView have many lines,in other
I have 2 views one is a scroll view and the other is a

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.