[iOS 7 Stanford 2013 Fall] Lecture 2 Xcode

Objective-C

Lazy Initialization

Inheritance

Getter & Setter

If implements both setter and getter, @synthesize is required.

Utility Method

A (usually) static method. Used when you need to do stuff that does not need an instance of a class.

Initialization

  • instancetype basically tells the compiler that this method returns an object which will be the same type as the object that this message was sent to.
  • Almost only for init.

Leave a Reply

Your email address will not be published. Required fields are marked *