Question:- What is SpriteKit and what is SceneKit?
Answer:- SpriteKit is a platform for creating animated 2D objects quickly and easily. SceneKit is a platform for 3D graphics rendering that was inherited from OS X. SpriteKit, SceneKit, and Metal are expected to boost a new generation of mobile games that push the boundaries of what the powerful GPUs in iOS devices can do.
Question:- Differentiate between a frame and a bound?
Answer:- A UIViews bounds are a rectangle with a size (width, height) and position (x,y) relative to its own coordinate system (0,0). A UIViews frame is a rectangle with a scale (width, height) and position (x,y) relative to the superview it is located within.
Question:- How to Prioritize Usability in Design?
Answer:- To prioritize usability, the design process has broken down into 4 steps: • Consider the user’s perspective when designing the user experience. • Users, not demographics, are what you should focus on. • Consider all of the scenarios in which an app might be useful when promoting it. • Even after the app has been released, continue to improve its functionality.
Question:- Explain iBeacons?
Answer:- Apples introduction of Bluetooth low-energy (BLE) wireless technology, iBeacon, is a new way for iPhones and other iOS users to receive location-based information and services.
Question:- Describe managed object context and its function.
Answer:- A managed object context (represented by an instance of NSManagedObjectContext) is a temporary scratchpad in an application for a (presumably) related collection of objects. These objects collectively represent an internally consistent view of one or more persistent stores. A single-managed object instance exists in one and only one context, but multiple copies of an object can exist in different contexts. The key functions of the managed object context include the following: • Life-cycle management: Here, the context provides validation, inverse relationship handling, and undo/redo. • Notifications: It refers to context posts’ notifications at various points that can be optionally monitored elsewhere in our application. • Concurrency: Here, the Core Data uses thread (or serialized queue) confinement to protect managed objects and managed object contexts.
Question:- Why is the design pattern very important?
Answer:- Design patterns are important in software design because design patterns are reusable solutions to many common problems. They’re models for writing code that’s simple to comprehend and reuse. The most popular design trends in Cocoa are as follows: • Creational: Singleton. • Structural: Decorator, Adapter, Facade. • Behavioral: Observer, and, Memento
Question:- What is Concurrency?
Answer:- Concurrency is a fancy term for “running several tasks at the same time.” On iOS devices, concurrency is commonly used to allow you to run tasks such as downloading or processing data in the background while keeping your user interface sensitive.
Question:- Mention various ways to achieve concurrency in iOS?
Answer:- Mainly, there are 3 ways to achieve concurrency in iOS. There are: • Grand Central Dispatch • OperationQueue • Threads
Question:- What is meant by deadlock?
Answer:- A deadlock is a situation that occurs when at least two threads are locked on a different resource, and both are waiting for the other resource to finish its job. And no one is able to unlock the resource it is guarding.
Question:- Explain the lazy property in Swift?
Answer:- A lazy stored property is one that does not determine its initial value until it is used for the first time. The lazy modifier is written before the declaration of a lazy stored property.
Question:- What is the abbreviation of ARC?
Answer:- ARC stands for Automatic Reference Counting.
Question:- What is the difference between strong, weak, read-only, and copy?
Answer:- • Strong: Through the life of the object, the reference count will be increased and the reference will be maintained • Weak: It can be said as a non-strong reference that means it refers to the fact that we are referring to an object but not adding to its reference count. It’s often used to establish a parent-child relationship. The parent has a strong connection with the infant, but the child has only a small connection with the parent. • Read-only: Initially, The property will be set and it cant be changed. • Copy: It means that when an object is created, were copying its value. Also prevents its value from changing.
Question:- Explain QOS?
Answer:- QoS stands for the quality of service. It is a class that organizes the work that NSOperation, NSOperationQueue, NSThread artifacts, dispatch queues, and threads do (POSIX threads). By assigning a QoS, you’re telling the system how important it is, and the system prioritizes and schedules it accordingly.
Question:- What is the use of deinit in swift?
Answer:- Deinitialization in Swift is the method of deallocating or cleaning up unused class instance objects in order to free up memory space used by machine resources for better memory management. Until a class instance is deallocated, the deinitialization process is usually named.
