RSDCountdownStepViewController
open class RSDCountdownStepViewController: RSDStepViewController
RSDCountdownStepViewController is a simple countdown timer for displaying a short duration (5-4-3-2-1) countdown.
This view controller includes a default nib implementation that is included in this framework. It includes a countdownLabel
that can be used to show a numeric countdown (5-4-3-2-1) and a pauseButton that can be used to pause the countdown timer.
-
A label that is updated to show a countdown (5-4-3-2-1).
Declaration
Swift
@IBOutlet open var countdownLabel: UILabel? -
A button that can be used to pause/resume the countdown timer.
Declaration
Swift
@IBOutlet open var pauseButton: UIButton? -
This class overrides
didSetto update thecountdownLabelto the new value.Declaration
Swift
open override var countdown: Int -
Toggle the state of the
pauseButtonto pause/resume the countdown.Declaration
Swift
@IBAction open func pauseTimer()
-
The default nib name to use when instantiating the view controller using
init(step:).Declaration
Swift
open class var nibName: String -
The default bundle to use when instantiating the view controller using
init(step:).Declaration
Swift
open class var bundle: Bundle -
Initialize the class using the given nib and bundle.
Note
If this initializer is used with anilnib, then it must assign the expected outlets.Declaration
Parameters
nibNameOrNilThe name of the nib or
nil.nibBundleOrNilThe name of the bundle or
nil. -
Required initializer. This is the initializer used by a
UIStoryboard.Declaration
Swift
public required init?(coder aDecoder: NSCoder)Parameters
aDecoderThe decoder used to initialize this view controller.
View on GitHub
RSDCountdownStepViewController Class Reference