Inherits from UIView
Declared in SFormView.h
Availability
Related samples

Overview

A view that represents a ShinobiForm model.

This view contains a number of SFormSectionViews.

Tasks

Other Methods

Layout

  •   layout

    Used to layout the sections added to this view.

    property

Submit Button

  •   submitButton

    When this button is pressed, the form’s submit method is called.

    property

Field Navigation

Properties

fieldViewIterator

Iterates over the field views in the form.

@property (nonatomic, strong) id<SFormFieldViewIterator> fieldViewIterator

Discussion

This object is used to control the navigation order of fields in the form. Set this object to modify the navigation order of the fields.

Declared In

SFormView.h

keyboardToolbar

The view to be placed above the keyboard when editing fields.

@property (nonatomic, strong) id<SFormNavigationToolbar> keyboardToolbar

Discussion

The keyboard toolbar view will be set as the inputAccessoryView for any text fields added to the form.

By default this is an instance of SFormToolbar.

Declared In

SFormView.h

layout

Used to layout the sections added to this view.

@property (nonatomic, strong) id<SFormLayout> layout

Discussion

The layout is used by SFormView in its layoutSubviews method. Setting this to nil will stop the view from doing any layout if you want to set frames manually.

Default is an instance of the class SFormLayoutAlignedVertically.

Declared In

SFormView.h

model

The model being presented.

@property (nonatomic, strong) ShinobiForm *model

Declared In

SFormView.h

sectionViews

The section views this form view displays.

@property (nonatomic, copy) NSArray *sectionViews

Declared In

SFormView.h

submitButton

When this button is pressed, the form’s submit method is called.

@property (nonatomic, strong) UIButton *submitButton

Discussion

A UIButton set on this property will add the parent form as a target, calling submit on the form for the event touch up inside. We provide a UIButton subclass, SFormSubmitButton, which is styled to match our form styling.

By default the form’s button will be nil.

Declared In

SFormView.h