---
title: "What is a collection in iOS?"  
description: "What is a collection in iOS?"  
author: "Sunil Singh"  
published: 2017-01-12  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/23175/what-is-a-collection-in-ios  
category: "ios"  
tags: ["iphone", "collection", "ios", "iphone sdk"]  
reading_time: 1 minute  

---

# What is a collection in iOS?

A collection can be called as a container - is simply an object that groups multiple elements into a single unit. A collection is a Foundation framework class that is used for storing and managing groups of objects in Cocoa and Cocoa Touch. Collection primary role is to store objects in the form of either an array(NSArray,NSMutableArray), a dictionary(NSDictionary), or a set (NSSet,NSMutableSet) etc.

## Answers

### Answer by Sunil Singh

A collection can be called as a container - is simply an object that groups multiple elements into a single unit. A collection is a Foundation framework class that is used for storing and managing groups of objects in Cocoa and Cocoa Touch. Collection primary role is to store objects in the form of either an array(NSArray,NSMutableArray), a dictionary(NSDictionary), or a set (NSSet,NSMutableSet) etc.


---

Original Source: https://www.mindstick.com/interview/23175/what-is-a-collection-in-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
