Instance Method

viewWillTransitionToSize:

For a view controller that is part of an app extension, called when its view is about to be resized.

Declaration

- (void)viewWillTransitionToSize:(NSSize)newSize;

Parameters

newSize

The new size for the view controller’s view.

Discussion

Override this method if you want to change layout in response to the change in size, potentially in an animated way.

See Also

Configuring an App Extension View Controller

extensionContext

For a view controller that is part of an app extension, the app extension context.

preferredScreenOrigin

For a view controller that is part of an app extension, the preferred screen origin.

preferredMaximumSize

For a view controller that is part of an app extension, the largest allowable size for the app extension’s primary view, in screen units.

preferredMinimumSize

For a view controller that is part of an app extension, the smallest allowable size for the app extension’s primary view, in screen units.