---
title: "How you will create subclass of UIAlertController iOS ?"  
description: "How you will create subclass of UIAlertController iOS ?"  
author: "Sunil Singh"  
published: 2017-01-11  
updated: 2020-09-22  
canonical: https://www.mindstick.com/interview/23166/how-you-will-create-subclass-of-uialertcontroller-ios  
category: "ios"  
tags: ["iphone", "ios", "iphone sdk", "xcode"]  
reading_time: 1 minute  

---

# How you will create subclass of UIAlertController iOS ?

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 Sunil Singh

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/23166/how-you-will-create-subclass-of-uialertcontroller-ios

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
