Heap and Stack Memory .

Stack: Static in memory and allocation happens only during compile time. It’s a special region of your computer’s memory that stores temporary variables created by each function main(). The stack is a “LIFO”(last in, first out) data structure. When a function is called, all local instances will be push on to the current stack and pop/freed when …

Heap and Stack Memory . Read More »

What is ARC?

In the Swift programming language, automatic reference counting (ARC) is used to manage apps’ memory usage. It initializes and deinitializes system resources, thereby releasing memory reserved by a class instance when it no longer needs it. ARC keeps track of how many properties, constants, and variables currently refer to each class instance. When there is …

What is ARC? Read More »

GCD (Grand Central Dispatch)

Grand Central Dispatch (GCD) is a low-level API that enables users to run concurrent tasks (occurring simultaneously) by managing threads in the background. Grand Central Dispatch is Apple’s solution to build concurrency and parallelism into iOS applications, so multiple background tasks can be run concurrently in the background without affecting the main thread. It was …

GCD (Grand Central Dispatch) Read More »

What is an iOS developer and what are his responsibilities?

An iOS developer is a programmer or software engineer who designs and develops applications that run Apple’s iOS on iOS devices. Ideally, the iOS developer should be skilled in two programming languages i.e., Objective-C and Swift. Main Responsibilities of an iOS Developer Clean, efficient coding for iOS applications. Ensure clean and secure codes by performing …

What is an iOS developer and what are his responsibilities? Read More »

iOS Application States

Not running: In the Not Running state, an application has either not been launched or has been closed/shut down by the system. Inactive: A brief state of inactivity occurs while the app is leaving or entering its active state. Despite running in the foreground, it isn’t yet ready to accept user input or events. This means that …

iOS Application States Read More »

What is property in iOS?

Properties are basically values that are associated with a class, struct, or enum.  They can be thought of as “sub-variables,” i.e., parts of another object.  Example:   struct Icecream  {    var flavor: String = “” } var choco = Icecream() choco.flavor = “Chocolate Icecream” In the above code, we created a structure called Icecream. One of …

What is property in iOS? Read More »

iOS Architecture

iOS Architecture iOS operates in a Layered structure. iOS Architecture is comprised of four layers, each of which offers a programming framework for creating applications that operate on top of the hardware. Communication will be enhanced by the layers between the Application Layer and the Hardware Layer. A lower-level layer provides the services that all …

iOS Architecture Read More »

What is iOS?

What is iOS? No doubt, we have seen the abbreviation iOS hundreds of times. iOS stands for “iPhone Operating System.” It is the operating system for Apple devices, and it is considered the second most popular mobile operating system globally after Android. This operating system powers many of Apple’s products including the iPhone, iPad, and …

What is iOS? Read More »

Factory Design Pattern

Factory Method Factory Method is a creational design pattern that provides an interface for creating objects in a superclass, but allows subclasses to alter the type of objects that will be created.  Use the Factory Method when you don’t know beforehand the exact types and dependencies of the objects your code should work with. Use the …

Factory Design Pattern Read More »

ViewModel in MVVM

What is viewModel in MVVM pattern? ViewModel is a non-visual class. The ViewModel is unaware of the view directly. Communication between the View and ViewModel is through some property and binding. Models are connected directly to the ViewModel and invoke a method by the model class, it knows what the model has, like properties, methods …

ViewModel in MVVM Read More »