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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T10:49:35+00:00 2026-06-15T10:49:35+00:00

I am trying out an application using a child ViewController inside another viewController. I

  • 0

I am trying out an application using a child ViewController inside another viewController.
I have a VC and I am instantiating another VC with its own xib inside the outer VC.

I am adding it as a child using the new iOS 5 method addChildViewController and also I have added its view as a subView.

But how do I control its position and size inside the parent view controller ?

should I modify the frame of the child controller’s view ?
or I have to adjust the freeform view in the xib itself ?

Also in my current implementation, the child view starts behind the status bar of the parent viewcontroller’s view.
Any idea on how to systematically implemement something like this ?

  • 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-15T10:49:37+00:00Added an answer on June 15, 2026 at 10:49 am
    #define SUBVIEWS_FRAME CGRectMake(0,20,100,100) // whatever frame you need
    - (void)addChildViewController:(UIViewController *)childController{
    
        [childController.view setFrame:SUBVIEWS_FRAME];
        [super addChildViewController:childController];
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We are trying to get quaqua out of our application. We had been using
I am trying out Redis on Appharbor in an MVC4 application. I am using
I am trying to create a sample JMS application using Eclipse IDE. I have
I am trying to build a small application using knockout, require, underscore. I have
Im trying out the banking sample application and when i try to add or
While trying out an experimental UINavigationController-based iPhone application, I ran into a problem when
I was trying out a simple JSF application, in which I need to check
I am trying to refactor out my application a little bit to keep it
Trying to figure out how to programmatically access the web pages in the application.
I am trying to find out if an instance of an application (not vb.net)

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.