SLSwitch Class Reference
Inherits from | SLButton : SLElement : SLUIAElement : NSObject |
Declared in | SLSwitch.h |
Overview
SLSwitch
matches against instances of UISwitch
.
The value of an SLSwitch
can be queried and set using the on
property.
Tapping an SLSwitch
will also toggle its value.
Properties
on
The boolean value of the switch.
@property (nonatomic, getter=isOn) BOOL on
Discussion
setOn:
will set the value of the switch regardless of the current state,
as opposed to tapping which will toggle it.
Declared In
SLSwitch.h