Instance Property

preferredScreenOrigin

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

Declaration

@property NSPoint preferredScreenOrigin;

Discussion

Set this property to position the lower-left corner of the app extension’s primary view in screen space. To specify the desired primary view size for an app extension’s view controller, use the preferredContentSize property.

See Also

Configuring an App Extension View Controller

extensionContext

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

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.

- viewWillTransitionToSize:

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