Table of Contents Previous Section

The Structures of init and awake

The init method must begin with an invocation of super's init method and must end by returning self.

- init {
  [super init];
  /* initializations go here */
  return self;
}

The awake method has no such structure. In it, you don't need to send a message to super or return anything.

- awake {
    /* initializations go here */
}

Table of Contents Next Section