Are there Constraint layout managers on the iPhone OS?

The CA Programming Guide talks about constraint layout managers. However, CALayer in the iPhone SDK does not have any restriction properties or the addConstraint method.

IPhone OS is said to simply not provide custom layout managers. But what about the standard ones?

+7
iphone cocoa-touch uikit layout-manager
source share
3 answers

Unfortunately, despite the documentation saying that the iPhone CALayer implementation lacks layering and layer layouts. This can be seen by the absence of the autoresizingMask property on CALayer on the iPhone.

For Core Plot, we implemented our own custom layer layout using the -layoutSublayers CALayer method. The CPLayer class provides an example of this approach.

+10
source share

The only method you can use to position views / layers relative to their supervisor / super layer is the model of springs and struts. Custom layout managers are not available on iPhone.

+1
source share

Springs and Struts layout support is available through the autoresizingMask property of the UIView.

+1
source share

All Articles