SFormSwitchFieldView Class Reference

Inherits from SFormFieldView : UIView
Declared in SFormSwitchFieldView.h
Availability
Related samples

Overview

A view that allows the user to input a boolean value via a UISwitch.

This view uses a UISwitch as the inputElement to display the underlying field. It also uses a UISwitch as the inputElement’s inputView to allow the user to input the boolean.

Tasks

Other Methods

Default Appearance

Properties

inputElement

The UISwitch used as the inputView for the field’s inputElement.

@property (nonatomic, strong) UISwitch *inputElement

Declared In

SFormSwitchFieldView.h

model

The boolean field model being presented.

@property (nonatomic, strong) SFormBooleanField *model

Declared In

SFormSwitchFieldView.h

onTintColor

The onTintColor that is applied to the UISwitch when this field view enters its default state.

@property (nonatomic, strong) UIColor *onTintColor

Discussion

The color will be visible when the switch is in it’s ‘on’ state.

Declared In

SFormSwitchFieldView.h