Last active
December 15, 2015 02:19
-
-
Save jk/5186668 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// are there any benefits in using the new UINib | |
NSArray *topLevelObjects1 = [[UINib nibWithNibName:@"myCell" bundle:nil] instantiateWithOwner:nil options:nil]; | |
// instead of the old approach? | |
NSArray *topLevelObjects2 = [[NSBundle mainBundle] loadNibNamed:@"myCell" owner:nil options:nil]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
So the conclusion is: UINib caches and NSBundle doesn't. You should use UINib in every case.