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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T10:10:02+00:00 2026-06-10T10:10:02+00:00

This is how I load the XIB view as subview: UIViewController *nameController = [[NameSubViewController

  • 0

This is how I load the XIB view as subview:

UIViewController *nameController = [[NameSubViewController alloc] initWithNibName:@"NameSubViewController" bundle:nil];
UIView *subView = [nameController view];
[self.view addSubview:subView];

But then it takes up the whole screen. How can I make the subview frame size the same as the XIB? (320 x 350)

Like a CGRect 50, 50, 320, 350

  • 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-10T10:10:04+00:00Added an answer on June 10, 2026 at 10:10 am

    Got it, had to set the size in the NameSubViewController viewDidLoad, not MainViewController init.

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

Sidebar

Related Questions

i am making an application with login view. This is just simple UIViewController with
I'm trying to load a view controller with a different XIB, but for some
When my view is trying to load, the applications crashes and i get this
Hello how to load UITableViewController in UIViewController. Like in this video http://www.youtube.com/watch?v=9S114beUwPM at 3:55.
when click Audio button in view1.xib i want to load view2.xib file (this is
I use Codeigniter platform to make a website I used this .load script to
Using this to load the json var jsonParsed = JSON.parse(localStorage.getItem('test')); Using this to save
I got this from Load web browser with web response . and am wondering
I want to load this simple something into my Editor: Write:-repeat,write(hi),nl,fail. So that it
I'm using this to load php functions and send them to javascript in 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.