Core App Objects Flashcards

1
Q

What is the use of controller object UIApplication?

A

Controller object UIApplication is used without subclassing to manage the application event loop.
It coordinates other high-level app behaviors
It works along with the app delegate object which contains app-level logic.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Which object is created by UIApplication main function at app launch time?

A

The app deleagte object is created by UIApplications main function at launch time. The app delegate object’s main job is to handle state transitions within the app.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

How is the app delegate declared by Xcode project templates?

A

App delegate is declared as subclass of UIResponder by Xcode project templates.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What happens if UIApplication object does not handle an event?

A

In such case the event will be dispatched to your app delegate for processing.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Which app specific objects store the app’s content?

A

A Data model object are app specific objects and store app’s content. Apps can also use document objects to manage some or all of their data model objects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Are document object required for an application? what does they offer?

A

Document objects are not required but are very useful in grouping data that belongs in a single file of file package.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Which object manage the presentation of app’s content on the screen?

A

A View Controller objects takes care of the presentation of app’s content on the screen. A view controller is used to manage a single view along with the collection of subviews. It makes its views visible by installing them in the app’s window.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Which is the super class of all view controller objects?

A

UIViewController class. The functionality for loading views, presenting them, rotating them in response to device rotations, and several other standard system behaviors are provided by UIViewController class

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What is the purpose of UIWindow object?

A

The presentation of one or more views on a screen is coordinated by UIWindow object

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How to you change the content of your app in order to change the views displayed in the corresponding window?

A

To change the content of your app, you use view controller to change the views displayed in the corresponding window. Remember, window itself is never replaced

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Define view object

A

Views along with controls are used to provide visual representation of the app content. Views is an object that draws content in a designated rectangular area and it responds to events within that area

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

You wish to define your custom view. Which class is subclassed?

A

Custom views can be defined by subclassing UIView

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Apart from Incorporating views and controls , what else can an app incorporate?

A

Apart from incorporating views and controls, an app can also incorporate Core Animation layers into its view and control hierarchies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What are layer objects and what do they represent?

A

Layer objects are data objects which represent visual content. Layer objects are used by views to render their content. Custom layer objects can also be added to the interface to implement complex animations and other types of sophisticated visual effects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly