50 iOS Interview Questions And Answers Part 2

Image for post
Image for post

A) is actually a thing that exists and

B) is properly exposed to Objective-C.

I recommend reading the Swift language guide chapter on access control.

Image for post
Image for post

Creates the view that the controller manages. It’s only called when the view controller is created and only when done programatically. It is responsible for making the view property exist in the first place.

Called after the controller’s view is loaded into memory. It’s only called when the view is created.

It’s called whenever the view is presented on the screen. In this step the view has bounds defined but the orientation is not applied.

Called to notify the view controller that its view is about to layout its subviews. This method is called every time the frame changes

Called to notify the view controller that its view has just laid out its subviews. Make additional changes here after the view lays out its subviews.

Notifies the view controller that its view was added to a view hierarchy.

Before the transition to the next view controller happens and the origin view controller gets removed from screen, this method gets called.

After a view controller gets removed from the screen, this method gets called. You usually override this method to stop tasks that are should not run while a view controller is not on screen.

When the interface orientation changes, UIKit calls this method on the window’s root view controller before the size changes are about to be made. The root view controller then notifies its child view controllers, propagating the message throughout the view controller hierarchy.

Image for post
Image for post

Front end ( Clang ) takes the source code and generates abstract syntax tree ( LLVM IR ).

application:willFinishLaunchingWithOptions
application:didFinishLaunchingWithOptions
applicationDidBecomeActive
applicationWillResignActive
applicationDidEnterBackground
applicationWillEnterForeground
applicationWillTerminate

Two more delegate functions come with iOS13

configurationForConnecting
didDiscardSceneSessions

I highly recommend read this post

Part 3 is ready and waiting to be bitten. :) here you are.

That’s it. 😃😃😃 Thanks for reading.

If you want to follow me in social media, here are some links. github, twitter, instagram

You can check my previous article here.

Written by

Health Research Program’s iOS Developer, currently lives in Washington, D.C http://www.about.me/durul

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store