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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T02:03:19+00:00 2026-05-17T02:03:19+00:00

Is it better to put several views in one nib file instead? Thanks, Reshef

  • 0

Is it better to put several views in one nib file instead?

Thanks, Reshef

  • 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-17T02:03:20+00:00Added an answer on May 17, 2026 at 2:03 am

    Some time ago I performed test like this:

    cellForRowAtIndexPath_method:
    ....
    if (cell == nil) {
        NSArray *topLevelObjects = [[NSBundle mainBundle]
                                    loadNibNamed:@"MyCell"
                                    owner:nil options:nil];
        for ( id currObject in topLevelObjects ) {
            if ( [currObject isKindOfClass:[MyCell class]] 
                && [[currObject reuseIdentifier] isEqualToString:MyCellIdentifier] ) {
                cell = (MyCell *) currObject;
            }
        }
    }
    .....   
    

    I had several cells in one file – MyCells.xib. And I got a HUGE (like from 1.5 – 2 seconds for loading “5-cells-in-one-file” file to 0.1 seconds to load a file with one cell per file on iPhone 2G) performance boost, when I split this file to a separate cells like MyCell1.xib, MyCell2.xib etc.

    It could surprise you, but the lack of a performance was on a loadNibNamed invocation, not a “for” cycle.

    So, I’d suggest to use separate files if you are going to load these views oftenly.

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

Sidebar

Related Questions

I have a FileStream that consists of several files put into one file, and
I have put a small monkey patch to allow for better String.to_date handling. It
On some pages, I put keywords within anchor tags. What's better to use for
I have some common javascript functionality that I want to share across several views/pages.
I have an XML file that I have parsed and have put the information
There is one thread which executes say 50 methods across several packages. I want
I am coding a desktop project which will includes several classes, and will put
I have a page with several gridviews. For usability, I have put these gridviews
I put my C++ skills on the shelf several years ago and it seems
I need to make one function in a module platform-independent by offering several implementations,

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.