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

  • Home
  • SEARCH
  • 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 6220051
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T07:53:26+00:00 2026-05-24T07:53:26+00:00

Possible Duplicate: Create a UIViewController that contain a UIViewController I have a parent view

  • 0

Possible Duplicate:
Create a UIViewController that contain a UIViewController

I have a parent view with many subview in different viewcontroller because a part of screen is same with every view, so i create only needed part of other screen in other view controller nib.
Then i planed when a view need load i will just add it like subview and remove it switch to another screen
it’s just simple

viewController = []...
[self.view addSubview:viewController.view];
currentView = viewController.view;
currentView.setFrame :(aFrame); // to move to different part (all screen has a common part)

But my problem is new view is added to screen but it always stay at (0,0) no matter how frame i did set.
But weird thing is if i tap at part of screen in new frame it will be behavior like view was moved there but screen not redraw.

What wrong? Please help

  • 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-24T07:53:27+00:00Added an answer on May 24, 2026 at 7:53 am

    You said:

    i create only need only need part of other screen in other view controller nib

    I think that the problem could be related to the way the view is created in Interface Builder. Specifically, if you create a nib file and choose the “View” type, then a nib is created that contains a view with a fixed size (screen size).

    So, my suggestion is trying and create a nib using the “Empty” template and then adding a UIView from the library. In this case, you will be allowed to set the view size (in the third pane of the Inspector). Possibly this will fix your problem.

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

Sidebar

Related Questions

Possible Duplicate: How do you create a custom camera view, instead of UIImagePickerViewController? Many
Possible duplicate : comparing-two-arrays I have two NSArray and I'd like to create a
Possible Duplicate: Create a date with T-SQL I've a data table that stores each
Possible Duplicate: How do I create unique constraint that also allows nulls in sql
Possible Duplicate: Create WPF TextBox that accepts only numbers How i can check if
Possible Duplicate: How to create comma separated list from array in PHP? I have
Possible Duplicate: Create a usercontrol instance programmatically in ASP.NET Dear Friend i have the
Possible Duplicate: PHP : Create array for JSON I have an array like this
Possible Duplicate: How to create a Singleton in C ? Hello, if I have
Possible Duplicate: How to create a type bounded within a certain range I have

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.