Skip to main content

Posts

iOS Interview Questions List

Hi All! Here I am after a long time with some important topic.  iOS Interview Questions  Hope these questions will help you..... STUDY WELL. All the best! What are functions? How it differ from Closures? What is the difference between escaping and non escaping closures? How would you avoid retain cycles when using closures in swift? What is capture list? What is difference between unowned and weak? What is protocol? Can we extend protocol? Can we add properties to extensions? What are lazy properties? Are they thread safe? Whats Optional?(Unwrapping techniques) What is difference between if let and guard let? What is difference between Class and Struct? What is Actor? What are initialisers? What is convenience initialiser? What are higher order functions? Tell me life cycle of App Delegate? Life cycle of UIViewController? What are SOLID principles? What you use for persistent storage? Difference between NSSet and NSArray/ Set and Array? What is atomic and nonatmic? What is KVC and KVO?
Recent posts

Keyboard handling - Key Point in iOS App Development

Hello and Thank you for joining. Today, let us go through a very significant topic which is Keyboard Handling . All iOS Developer meets this challenge once while making an app including me. So lets see how can we overcome this challenge. In this blog, we will understand the method to handle the keyboard's show  and hide  events and accordingly handle the View Controllers. We will be working on an example to understand the procedure to handle Keyboard Events . But before that let's go through some significant terms. The first thing you should know is the UIWindow- “The backdrop for your app’s user interface and the object that dispatches events to your views.” UIWindow is the one on which we display our app content. However, there are some more tasks which object of UIWindow handles. Those are as follows- Setting the z-axis level of your window, which affects the visibility of the window relative to other windows. Showing windows and making

How to open a particular View Controller when the user taps on the push notification received?

Thank you for joining. Lets start First of all we will go through the Push notification flow  Push Notification Flow Here, I am considering that everyone has gone through APNs(Apple Push Notification service). If not then first go through this link . How the push notification flow takes place? Above image will help you understand the flow easily which is as follows: Your app registers for Push notification service. The device in which app is running will request for device token from APNs server along with device certificate. APNs will validate the certificates of application and generate a app-specific device token. APNS will send the device token to the application. This device token is then send to your/FCM server which will be providing notification. So whenever any interesting thing happens, your/FCM server sends push notification request along with device token to APNs. APNs decrypts the token to ensure the validity of the request and to determine the target device an

Swift programs to print different star patterns

Hello All. Thank you for joining. As we all know, everyone in the software domain goes through the tasks of printing patterns in an interview process. However, sometimes it seems difficult for a beginner to perform these tasks. So here are some programs in Swift to print different patterns which might help. Please feel free to correct me if I am wrong. Pattern 1:  Given a number int, write a program to print a below shape with n rows. Solution: func  upsideDown( _  int :  Int ) {      for  i  in   0 ...int- 1      {          print ( String . init (repeating:  "*" , count: int-i))      } } upsideDown ( 6 ) Pattern 2:  Given a number int, write a program to print a below shape with n rows. Solution: int = number of rows i = row number from 1 to int So count number of spaces and stars in each row and accordingly find the expression For this pattern expression is: Spaces count = int - i Star Count =