Contents

UIOverlayArrangementViewProperties

Properties you use to customize how an overlay arrangement presents a view.

Declaration

@interface UIOverlayArrangementViewProperties : NSObject

Overview

You can adjust how the overlay arrangement positions the primary and secondary views on a folded iPhone Duo with view properties. For example, if you would prefer the primary view to appear in the leading position instead of the trailing position when someone holds a folded iPhone Duo in landscape orientation, customize the overlay arrangement with view properties.

Start by creating a UIOverlayArrangement instance and a UIOverlayArrangementViewProperties instance:

UIOverlayArrangement *overlayArrangement = [UIOverlayArrangement overlayArrangement];
UIOverlayArrangementViewProperties *primaryViewProperties = [overlayArrangement.defaultViewProperties copy];

Specify an edge for the edge property, and then update the overlay arrangement and arrangement view controller:

primaryViewProperties.edge = NSDirectionalRectEdgeLeading;
[overlayArrangement setViewProperties:primaryViewProperties forPlacement:UIArrangementViewControllerViewPlacementPrimary];
[arrangementViewController updateArrangement:overlayArrangement animated:NO];

Topics

Creating view properties

Configuring the view

See Also

Configuring the arrangement