SFormSectionLayoutAlignedVerticallyByInput Class Reference

Inherits from SFormSectionBaseLayout : NSObject
Declared in SFormSectionLayoutAlignedVerticallyByInput.h
Availability
Related samples

Overview

A layout manager that is used to layout fields in their superview so that:

  • The fields are aligned by their input elements.
  • The fields are stacked vertically in the order of the array (first element at top).
  • The fields keep their own size.
    |                     | |               |
    |     Very long label | |     field     |
    |_____________________|_|_______________|
                            |
                            |
                ____________|_____________
               |          | |             |
               |    label | |   field     |
               |__________|_|_____________|
                            |
                            |
            ________________|_________________
           |              | |                 |
           |   long label | |  field          |
           |______________|_|_________________|
                            |
                            |
                         Aligned

This layout will force a layoutSubviews on the section’s field views.