---
title: "How you will create subclass of UIAlertController"  
description: "How you will create subclass of UIAlertController"  
author: "Jayden Bell"  
published: 2017-01-11  
updated: 2020-09-21  
canonical: https://www.mindstick.com/interview/23171/how-you-will-create-subclass-of-uialertcontroller  
category: "ios"  
tags: ["ios"]  
reading_time: 1 minute  

---

# How you will create subclass of UIAlertController

The UIAlertController does not support subclassing you can use as it is. The view hierarchy for UIAlertController is private and must not be modified.For more detail you can visit [https://developer.apple.com/reference/uikit/uialertcontroller#overview](https://developer.apple.com/reference/uikit/uialertcontroller#overview)

## Answers

### Answer by Jayden Bell

The UIAlertController does not support subclassing you can use as it is. The view hierarchy for UIAlertController is private and must not be modified.For more detail you can visit [https://developer.apple.com/reference/uikit/uialertcontroller#overview](https://developer.apple.com/reference/uikit/uialertcontroller#overview)


---

Original Source: https://www.mindstick.com/interview/23171/how-you-will-create-subclass-of-uialertcontroller

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
