Objective C - Card matching game

7 important questions on Objective C - Card matching game

Does an array contain strong or weak pointers to its object?

The pointers in the array point strongly to its objects!, as long as the array exists, the object pointed to will also.

Does an IBOutlet properties setter gets called automaticly ?

Yes, but i dont know when yet :)

If you have an init that you must call to make your class work, how is it called?

Designated initializer
  • Higher grades + faster learning
  • Never study anything twice
  • 100% sure, 100% understanding
Discover Study Smart

How can you "Tell" objective C that this is your designated initializer?

You can,t! Only by a comment so other users of your class know!

What is the first line of code in a designated initializer?

self = [super init]

Is it a good idea to have a property of the model in your controller?

Yes, its very common, how would you "talk" to it otherwise?

What is a "Class Extension"?

An area in the implementation where we put private properties.

The question on the page originate from the summary of the following study material:

  • A unique study and practice tool
  • Never study anything twice again
  • Get the grades you hope for
  • 100% sure, 100% understanding
Remember faster, study better. Scientifically proven.
Trustpilot Logo