---
title: "What is the use of UINib class in Objective-C?"  
description: "What is the use of UINib class in Objective-C?"  
author: "Tarun Kumar"  
published: 2016-02-29  
updated: 2020-09-16  
canonical: https://www.mindstick.com/interview/22992/what-is-the-use-of-uinib-class-in-objective-c  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 2 minutes  

---

# What is the use of UINib class in Objective-C?

**UINib** class is available from iOS version 4.0. main purpose of UINib on iOS application development is to speed up the loading of frequently used NIB files. It does that by caching the NIB file objects at the first time the NIB is loaded from disk, next attempts to load the NIB file then come from the memory copy avoiding the slower disk access.\
In iOS application programming the best place to use UINib is in **UITableView** Controllers where the table view cell is being loaded from a NIB file each time a new cell is created. The best thing of UiNib is that without changing huge number of codes in our application we can improve app performance using UINib.

## Answers

### Answer by Tarun Kumar

**UINib** class is available from iOS version 4.0. main purpose of UINib on iOS application development is to speed up the loading of frequently used NIB files. It does that by caching the NIB file objects at the first time the NIB is loaded from disk, next attempts to load the NIB file then come from the memory copy avoiding the slower disk access.\
In iOS application programming the best place to use UINib is in **UITableView** Controllers where the table view cell is being loaded from a NIB file each time a new cell is created. The best thing of UiNib is that without changing huge number of codes in our application we can improve app performance using UINib.


---

Original Source: https://www.mindstick.com/interview/22992/what-is-the-use-of-uinib-class-in-objective-c

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
