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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T22:16:35+00:00 2026-06-12T22:16:35+00:00

I have a view loaded quite simply: self.splashView = [[[NSBundle mainBundle] loadNibNamed:@DownloadingData owner:nil options:nil]

  • 0

I have a view loaded quite simply:

self.splashView = [[[NSBundle mainBundle] loadNibNamed:@"DownloadingData"
                                                        owner:nil options:nil] objectAtIndex:0];
[self.view addSubview:self.splashView];

It’s a full height 4″ retina view in portrait mode with status bar, top bar and bottom bar set to none. It has constraints such that an image is aligned along the bottom. I use similar views within controllers elsewhere in the app and they resize into the available space (with NavigationBar and TabBar) absolutely fine. However this view, loaded directly from a nib and then added appears to ignore the constraints.

The view is intended for use in all sorts of situations, e.g. with/without any combination of navigation bars/tab bars.

I’ve tried various combinations of setNeedsLayout, setNeedsUpdateConstraints on splashView. I have also tried calling layoutSubviews on the view itself.

Can anyone offer some advice? In this instance should I be doing it another way? With a viewController perhaps, or adding the constraints manually in code?

  • 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-12T22:16:37+00:00Added an answer on June 12, 2026 at 10:16 pm

    Well I guess it was obvious really:

    self.splashView = [[[NSBundle mainBundle] loadNibNamed:@"DownloadingData"
                                                     owner:nil options:nil] objectAtIndex:0];
    [self.view addSubview:self.splashView];
    [self.splashView setFrame:self.view.frame];
    

    Then auto resize/constraints work as expected.

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

Sidebar

Related Questions

I'm trying to have my view hierarchy loaded through calls to loadNibNamed. For a
I have a view that is loaded in the MainWindow.xib. It is just a
I have a View / ViewModel where a ProductList is loaded. This list is
Hello i have a list view control, While the form is being loaded i
I have 2 sections within a table view and I have loaded one section
I have a view which returns quite a lot of data. Right now, the
I have a data grid view with images loaded into it. The table which
I have a list view loaded from an array (used from the tutorial on
i have a scroll view loaded with 3 view controllers. each view controller is
I have view on which I defined a custom tagName. I need to be

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.