---
title: "During the app launch cycle who calls the main function of you app?"  
description: "During the app launch cycle who calls the main function of you app?"  
author: "Tarun Kumar"  
published: 2015-08-25  
updated: 2020-09-18  
canonical: https://www.mindstick.com/interview/22789/during-the-app-launch-cycle-who-calls-the-main-function-of-you-app  
category: "iphone"  
tags: ["iphone", "ios", "objective c"]  
reading_time: 1 minute  

---

# During the app launch cycle who calls the main function of you app?

During app launching, the system creates a main thread for the app and calls the app’s main function on that main thread. The Xcode project’s default main function hands over control to the UIKit framework, which takes care of initializing the app before it is run.

## Answers

### Answer by Tarun Kumar

During app launching, the system creates a main thread for the app and calls the app’s main function on that main thread. The Xcode project’s default main function hands over control to the UIKit framework, which takes care of initializing the app before it is run.


---

Original Source: https://www.mindstick.com/interview/22789/during-the-app-launch-cycle-who-calls-the-main-function-of-you-app

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
