Instance Method

setHidden:

Hides or shows the interface object in your user interface.

Declaration

- (void)setHidden:(BOOL)hidden;

Parameters

hidden

A Boolean value indicating the visibility of the object. Specify YES to hide the object. Specify NO to show it.

Discussion

When you hide or show an object in your interface, WatchKit makes a note to update the layout during the next refresh cycle. During that cycle, WatchKit adjusts the layout to display only the currently visible objects.

See Also

Hiding and Showing an Object

- setAlpha:

Sets the opacity of the interface object.