Top 10 iOS interview questions at 2022
6 min readMay 21, 2022
1. What is ARC (Automatic Reference Counting)?
Automatic reference counting (ARC) is a memory management technique used in the Swift programming language. It initializes and deinitializes system resources, freeing memory that a class instance has reserved when it is no longer needed. ARC keeps track of how many properties, constants, and variables each class instance presently has. ARC will not deallocate an instance if there is at least one current reference to it. The utilization of ARC principles is a required component of iOS development.
ARC’s Functions -
- ARC uses init() to create a new class instance and allocates memory to store the information.
- Information about the instance type and its values is stored in memory.
ARC automatically frees memory when the class instance is no longer required by using deinit (). - ARC ensures that deinit() is only executed to unused instances by tracking the attributes, constants, and variables of current referencing classes.
2. Explain the different types of iOS Application States.
The different iOS application states are:
- Not running state: when the app has not been launched or was running but…