Instance Method

willActivate

Called to let you know that the interface controller’s is active.

Declaration

- (void)willActivate;

Discussion

The system calls this method when it is getting ready to display your interface controller. Use this method to perform last minute tasks required to ensure your content is up to date. Do not use this method to perform the initial setup of your interface. Your interface should be mostly initialized and ready to use by the time this method is called.

The calling of this method is not a guarantee that your interface controller is onscreen or about to appear onscreen. The system may call this method early to give you time to update your content. Use the didAppear method to determine when your interface appears onscreen.

The system calls this method on your WatchKit extension’s main thread. The super implementation of this method does nothing.

See Also

Responding to Activation and Appearance Events

- didDeactivate

Called to let you know that the interface controller is no longer active.

- didAppear

Called to let you know that the interface controller’s content is now onscreen.

- willDisappear

Called to let you know that the interface controller’s content is now offscreen.