SFormSectionLayout Protocol Reference

Conforms to NSObject
Declared in SFormSectionLayout.h
Availability
Related samples

Overview

An object capable of laying out the contents of an SFormSectionView.

Possible implementations include:

Instance Methods

idealSizeForSectionView:

The ideal size for a section in this layout.

- (CGSize)idealSizeForSectionView:(SFormSectionView *)sectionView

Parameters

sectionView

The section view.

Discussion

This method should calculate and return the ideal size for the field view.

Declared In

SFormSectionLayout.h

layoutSectionView:

Lays out the contents of a section view.

- (void)layoutSectionView:(SFormSectionView *)sectionView

Parameters

sectionView

The section view to be laid out.

Discussion

A typical implementation of this would layout the section view’s title and iterate through the fields, modifying the frame of each one so they are appropriately positioned within the section view.

Declared In

SFormSectionLayout.h