---
title: viewDidLoad()
framework: uikit
role: symbol
role_heading: Instance Method
path: uikit/uiviewcontroller/viewdidload()
---

# viewDidLoad()

Called after the controller’s view is loaded into memory.

## Declaration

```swift
func viewDidLoad()
```

## Mentioned in

Displaying and managing views with a view controller Customizing a document-based app’s launch experience Making a view into a drag source

## Discussion

Discussion This method is called after the view controller has loaded its view hierarchy into memory. This method is called regardless of whether the view hierarchy was loaded from a nib file or created programmatically in the loadView() method. You usually override this method to perform additional initialization on views that were loaded from nib files.

## See Also

### Managing the view

- [view](uikit/uiviewcontroller/view.md)
- [viewIfLoaded](uikit/uiviewcontroller/viewifloaded.md)
- [isViewLoaded](uikit/uiviewcontroller/isviewloaded.md)
- [loadView()](uikit/uiviewcontroller/loadview().md)
- [loadViewIfNeeded()](uikit/uiviewcontroller/loadviewifneeded().md)
- [title](uikit/uiviewcontroller/title.md)
- [preferredContentSize](uikit/uiviewcontroller/preferredcontentsize.md)
- [ornaments](uikit/uiviewcontroller/ornaments.md)
