---
title: "Explain the correct way to manage Outlets memory"  
description: "Explain the correct way to manage Outlets memory"  
author: "Tarun Kumar"  
published: 2015-07-31  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/12744/explain-the-correct-way-to-manage-outlets-memory  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# Explain the correct way to manage Outlets memory

To manage Outlets memory at first create them as properties in the header that are *retained* and after In the *viewDidUnload:* method set the outlets to nil...

Ex: self.outlet = nil;

Finally in dealloc make sure to release the outlet.

## Answers

### Answer by Tarun Kumar

To manage Outlets memory at first create them as properties in the header that are *retained* and after In the *viewDidUnload:* method set the outlets to nil...

Ex: self.outlet = nil;

Finally in dealloc make sure to release the outlet.


---

Original Source: https://www.mindstick.com/interview/12744/explain-the-correct-way-to-manage-outlets-memory

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
