SFormSectionView Class Reference

Inherits from UIView
Declared in SFormSectionView.h
Availability
Related samples

Overview

A view for displaying a grouping of fields.

Tasks

Other Methods

Layout

Properties

fieldViews

The field views displayed by this section view.

@property (nonatomic, copy) NSArray *fieldViews

Discussion

Replacing this array will add any SFormFieldView objects as subviews to the section.

Warning: Updating the model’s fields array will cause this array to be replaced with auto-generated field views for the model.

Declared In

SFormSectionView.h

layout

Used to layout this form’s content.

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

Discussion

The layout manager is used in the layoutSubviews method to layout the content of the section. Setting this to nil is an easy way to stop the section from doing any layout if you want the frames of any added fields to be respected.

Default is a SFormSectionLayoutAlignedVertically.

Declared In

SFormSectionView.h

model

The model being presented.

@property (nonatomic, strong) SFormSection *model

Declared In

SFormSectionView.h

titleLabel

The title label of this section.

@property (nonatomic, strong) UILabel *titleLabel

Discussion

This text value of this label is kept in sync with the model’s title property.

Declared In

SFormSectionView.h