SFormFieldLayout Protocol Reference

Conforms to NSObject
Declared in SFormFieldLayout.h
Availability
Related samples

Overview

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

Possible implementations include:

Tasks

Properties

labelPadding

The amount of padding between the required label and the input element of a field.

@property (nonatomic, assign) CGFloat labelPadding

Declared In

SFormFieldLayout.h

Class Methods

idealSizeForFieldView:

The ideal size for a field in this layout.

+ (CGSize)idealSizeForFieldView:(SFormFieldView *)fieldView

Parameters

fieldView

the field view to be sized.

Return Value

The ideal size for the field.

Discussion

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

Declared In

SFormFieldLayout.h

Instance Methods

layout:

Lays out the contents of the field view.

- (void)layout:(SFormFieldView *)fieldView

Parameters

fieldView

The field view to be laid out.

Declared In

SFormFieldLayout.h