An app is said to be in an active state when it is accepting events and running in the foreground.
Posted Date:- 2021-10-15 11:29:00
It is said when it is not launched or gets terminated by the system while running.
Posted Date:- 2021-10-15 11:27:59
The process of adding new operators and changing existing ones to do various things is known as operator overloading.
+, *, and / symbols are known as operators.
Posted Date:- 2021-10-15 11:27:04
Make certain the process is completed entirely by CPU
Not default behavior
Not able to deal with multiple requests at the same time
Posted Date:- 2021-10-15 11:26:01
It is used for building software codes to run on iOS for the iPad and iPhone. Cocoa Touch is written in the objective-C language and has a different set of graphical control elements to Cocoa.
Posted Date:- 2021-10-15 11:25:13
ARC (Automatic Reference Counting) is a compiler-level feature that defines the process of managing the lifetime of objects in objective-C.
Posted Date:- 2021-10-15 11:23:59
Functions let us group a series of statements together to perform some task. Once a function is created, it can be reused over and over in your code. If you find yourself repeating statements in your code, then a function may be the answer to avoid that repetition.
Posted Date:- 2021-10-15 11:23:12
First, tvOS provides no browser support of any kind, nor is there any WebKit or other web-based rendering engine you can program against. This means your app canâ€™t link out to a web browser for anything, including web links, OAuth, or social media sites.
Second, tvOS apps cannot explicitly use local storage. At product launch, the devices ship with either 32 GB or 64 GB of hard drive space, but apps are not permitted to write directly to the onboard storage.
Posted Date:- 2021-10-15 11:22:31
Posted Date:- 2021-10-15 11:21:34
Regular expressions are special string patterns that describe how to search through a string.
Posted Date:- 2021-10-15 11:20:13
The bounds of a UIView is the rectangle, expressed as a location (x,y) and size (width, height) relative to its own coordinate system (0,0).
The frame of a UIView is the rectangle, expressed as a location (x,y) and size (width, height) relative to the superview it is contained within.
Posted Date:- 2021-10-15 11:19:34
Broke down its design process to prioritize usability in 4 steps:
* Think like the user, then design the UX.
* Remember that users are people, not demographics.
* When promoting an app, consider all the situations in which it could be useful.
* Keep working on the utility of the app even after launch.
Posted Date:- 2021-10-15 11:18:33
Completion handlers are super convenient when our app is making an API call, and we need to do something when that task is done, like updating the UI to show the data from the API call. Weâ€™ll see completion handlers in Appleâ€™s APIs like dataTaskWithRequest and they can be pretty handy in your own code.
Posted Date:- 2021-10-15 11:17:26
Code coverage is a metric that helps us to measure the value of our unit tests.
Posted Date:- 2021-10-15 11:16:52
Dynamic Dispatch is the process of selecting which implementation
of a polymorphic operation thatâ€™s a method or a function to call at run time. This means, that when we wanna invoke our methods like object method. but Swift does not default to dynamic dispatch.
Posted Date:- 2021-10-15 11:16:20
synchronized guarantees that only one thread can be executing that code in the block at any given time.
Posted Date:- 2021-10-15 11:15:21
We use dynamic for subclasses of NSManagedObject. @dynamic tells the compiler that getter and setters are implemented somewhere else.
Posted Date:- 2021-10-15 11:14:47
synthesize generates getter and setter methods for your property.
Posted Date:- 2021-10-15 11:14:17
The process of selecting which implementation of a polymorphic operation to call at run time is called Dynamic dispatch. It is used when we need to invoke our methods like the object method.
Posted Date:- 2021-10-15 11:13:41
State transitions can be responded to state changes in an appropriate way by calling corresponding methods on the appâ€™s delegate object.
* applicationDidBecomeActive( ) method: To prepare to run as the foreground app.
* applicationDidEnterBackground( ) method: To execute some code when the app is running in the background that may be suspended at any time.
* applicationWillEnterForeground( ) method: To execute some code when the app is moving out of the background.
* applicationWillTerminate( ) method: Called when the app is being terminated.
Posted Date:- 2021-10-15 11:13:11
MVC or Model View Controller is a design pattern that defines how logic will be separated when the user interface is implemented. In iOS, UIView is the base class provided by Apple for all views, and UIViewController is provided to support the Controller, which listens to events in a View and updates it when data changes.
Posted Date:- 2021-10-15 11:12:09
Like an interface in Java, the protocol defines a list of optional and required methods that a class can/must implement to adopt the protocol. Any class can define a protocol, and other classes can send protocol method-based messages to the class without knowing its type.
Posted Date:- 2021-10-15 11:11:33
It is dependent on the dataâ€™s use case. If data is static and is not likely to change, it can be loaded in viewDidLoad and cached. Whereas, if data changes regularly, use viewDidAppear to load it.
Posted Date:- 2021-10-15 11:10:10
A category is a way to add additional methods to a class without extending it. It is used to add a collection of related methods and additional methods to built-in classes in the Cocoa Frameworks.
Posted Date:- 2021-10-15 11:09:42
Retaining an object means increasing the retain count by one. The instance of the object is kept in memory till its retain count drops to zero. A reference to the instance is stored, and the same is shared with anyone who retained it. At the same time, copy means that the object will be cloned with duplicated value, but it cannot be shared with anyone else.
Posted Date:- 2021-10-15 11:09:14
The three different methods to reduce app size are:
1. Bit code
2. On-demand Resource
3. App Slicing
Posted Date:- 2021-10-15 11:08:46
The â€˜reuseIdentifierâ€™ is used to group all the similar rows from UITableView.
Posted Date:- 2021-10-15 11:08:14
In iOS, â€˜assignâ€™ is used to create an orientation from one object to the other without raising the retain count of the source object.
Posted Date:- 2021-10-15 11:07:50
KVC is used to access a property or value with the help of a string.
Posted Date:- 2021-10-15 11:07:23
The certificate types are:
1. Development Certificate
2. Distribution Certificate
3. Development and Distributing Certificates
Posted Date:- 2021-10-15 11:07:04
There are three parts of NSError object a domain, an error code, and a user info dictionary. The domain is a string that identifies what categories of errors this error is coming from.
Posted Date:- 2021-10-15 11:05:50
Synchronous can also be defined as In order. When you perform the synchronous operation, all that follows must wait for the operation to complete before proceeding.
In contrast, â€œasynchronousâ€ can also be defined as â€œout of order.â€ When you do something asynchronously, you can run the following code right away, and the asynchronous process will happen someday. It could be run on a separate thread from the rest of the code. It could easily be rescheduled on the same thread at a later date and you can notify you when it is done.
Posted Date:- 2021-10-15 11:05:30
Unless itâ€™s stated, use UIKit classes only from your applicationâ€™s main thread or main dispatch queue. This restriction applies in particular to classes derived from UIResponder or that require modifying the user interface of your app in some way.
Posted Date:- 2021-10-15 11:05:07
1. SBJson framework is supported by iOS. It is a JSON parser and generator for Objective-C (Objective-C is the primary programming language we use when writing software for OS X and iOS. It is a superset of the C programming language and provides object-oriented capabilities and a dynamic runtime).
2. SBJson provides flexible APIs and additional control that makes JSON handling easy.
Posted Date:- 2021-10-15 11:04:44
KVC is used to access a property or value with the help of a string.
Posted Date:- 2021-10-15 11:04:03
QOS stands for Quality of Service.
Posted Date:- 2021-10-15 11:03:32
A temporary container for multiple values is called a tuple. It is a list comma-separated type and is enclosed in parentheses.
Posted Date:- 2021-10-15 11:03:12
The rendering options are:
1. MutableLeaves: Lead strings in the JSON object graph are created as variable stringsâ€™ instances.
2. allowFragments: The parser allows top-level objects that are not array or dictionariesâ€™ instances.
3. MutableContainers: Dictionaries and arrays are not constants but variable objects.
Posted Date:- 2021-10-15 11:02:52
Both of these methods are present in AppDelegate.swift file and are used to add functionality to the App when the App is going to be launched.
Posted Date:- 2021-10-15 11:02:21
Atomic properties always return a fully initialized object. However, it comes at the cost of performance. If there is a property that you know has no risk on initializing value, then set it to nonatomic can gain a bit of performance.
Posted Date:- 2021-10-15 11:02:05
Posted Date:- 2021-10-15 11:01:45
iBeacon is the technology standard by Apple that allows mobile apps to listen from signs from beacons and react accordingly. This technology allows Mobile Apps to understand their position and deliver hyper-contextual content to users based on their location. The underlying technology is Bluetooth Low Energy.
Posted Date:- 2021-10-15 11:01:28
Before launch, an app is not said to be running. After a brief transition through the inactive state, it moves to the background or the active state when it is launched.
Posted Date:- 2021-10-15 11:00:41
UIKit classes should be used from the applicationâ€™s main thread only.
Posted Date:- 2021-10-15 11:00:30
The bundle ID is specified in Xcode, and it defines each App. A single project can have multiple targets and can output multiple apps. Use: it is branded multiple ways and has both free/lite and full/pro versions.
App ID is used to identify one or more apps from a single development team. It is a two-part string with a period(.) separating Team ID and bundle IF search string. The bundle ID search string is supplied by the developer, while Apple supplies the Team ID.
Posted Date:- 2021-10-15 11:00:18
The benefits are:
1. There are no nested if let statements
2. An early exit out of the function using return or using break
3. Guard statement safely unwrap optionals.
Posted Date:- 2021-10-15 11:00:02
Posted Date:- 2021-10-15 10:59:14
When the property is called for the first time, an initial value of the lazy stored properties is calculated. In many situations, lazy properties come handy to developers.
Posted Date:- 2021-10-15 10:58:58
A design pattern in which you can save stuff somewhere. This externalized state can be later restored without violating encapsulation and maintaining the privacy of data. iOS has specialized implementations of the pattern and uses it as a part of State Restoration.
Posted Date:- 2021-10-15 10:58:43
A class type containing a group of related items under the same umbrella, but it is impossible to create an instance of it.
Posted Date:- 2021-10-15 10:58:27