Is it better to put several views in one nib file instead?
Thanks, Reshef
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Some time ago I performed test like this:
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.