iOS вопросы и ответы для интервью
Связанные сравнения
Вопрос 41. What are the three significant benefits of guard statement?
The benefits are:
- There are no nested if let statements
- An early exit out of the function using return or using break
- Guard statement safely unwrap optionals.
Вопрос 42. What is the difference between 'bundle ID' and 'app ID'?
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.
Вопрос 43. When an app is launched, what are its state transitions like?
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.
Вопрос 44. List class hierarchy of a UIButton until NSObject.
NSObject -> UIResponder -> UIView -> UIControl -> UIButton.
Вопрос 45. What is the use of application:willFinishLaunchingWithOptions and application:didFinishLaunchingWithOptions?
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.
Самое полезное по оценкам пользователей:
- What does KVO stand for?
- Which is the application thread from where UIKit classes should be used?
- What is iOS?