ShinobiForm Class Reference

Inherits from NSObject
Declared in ShinobiForm.h
Availability
Related samples

Overview

A ShinobiForm is used to present input fields to a user in order to collect data.

A ShinobiForm contains 1 or more SFormSections that each owns a set of fields. An SFormField is used to collect users input and can give visual feedback as to the validity of any input.

Tasks

Other Methods

Sections

Extracting Values from the Form

Field Groups

Properties

delegate

The form’s delegate.

@property (nonatomic, weak) id<SFormDelegate> delegate

Declared In

ShinobiForm.h

fieldGroups

The field groups on a form.

@property (nonatomic, strong) NSArray *fieldGroups

Discussion

These objects should be of type SFormFieldGroup.

Declared In

ShinobiForm.h

sections

The sections belonging to the form.

@property (nonatomic, copy) NSArray *sections

Discussion

This is an array of SFormSection objects. Assigning to this will cause any observing SFormView objects to create new views to represent each model object in the array.

Declared In

ShinobiForm.h

Instance Methods

initWithSections:

Create a form containing the given sections.

- (instancetype)initWithSections:(NSArray *)sections

Parameters

sections

The sections to initialize the form with.

Discussion

This is the designated initializer.

Declared In

ShinobiForm.h

submit

Notify the delegate a submission has taken place.

- (void)submit

Declared In

ShinobiForm.h