SFormLayout Protocol Reference

Conforms to NSObject
Declared in SFormLayout.h
Availability
Related samples

Overview

A object capable of laying out the contents of a ShinobiForm.

Possible implementations include:

Tasks

Instance Methods

idealSizeForFormView:

The ideal size for a form in this layout.

- (CGSize)idealSizeForFormView:(SFormView *)formView

Parameters

formView

The form view.

Return Value

The ideal size for the form view.

Discussion

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

Declared In

SFormLayout.h

layout:sectionViews:

Positions sections within the form.

- (void)layout:(SFormView *)formView sectionViews:(NSArray *)sectionViews

Parameters

formView

The form view we are positioning the sections within.

sectionViews

An array of section views to be positioned.

Discussion

A typical implementation of this would iterate through the section views and modify the frame of each one so they are appropriately positioned.

Declared In

SFormLayout.h