iOS Walkthrough Flashcards

CS193P Class - iOS 5 Walkthrough

1
Q

What is an outlet?

A

A property of the Controller through which it can talk to an element in the View.

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

What is the destination of an outlet connection?

A

The controller

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

How do you create an outlet?

A

By crtl-dragging from an object in the view to the code (the Controller object).

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

Why use weak instead of strong storage?

A

window already has a strong pointer to

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

What is an action?

A

A method that is going to be sent from an object in the View to the Controller.

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

What is id?

A

An id is a pointer to an object of any class.

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

What is a pointer?

A

An address in memory classified by its class

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

What is the heap?

A

The heap allows programs to allocate memory exactly when they need it during the execution of a program, rather than pre-allocating it with a specifically-sized array declaration.

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

When do you use a class method?

A

When you want to create instances, get shared instances, or get utility info about a class

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