---
title: didReceiveMemoryWarning()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiviewcontroller/didreceivememorywarning()
---

# didReceiveMemoryWarning()

Sent to the view controller when the app receives a memory warning.

## Declaration

```swift
func didReceiveMemoryWarning()
```

## Mentioned in

Responding to memory warnings

## Discussion

Discussion Your app never calls this method directly. Instead, this method is called when the system determines that the amount of available memory is low. You can override this method to release any additional memory used by your view controller. If you do, your implementation of this method must call the super implementation at some point.
