MCTTappingStepViewController
public class MCTTappingStepViewController : MCTActiveStepViewController
The tapping step view controller sets up gesture listeners that are used to track the button taps.
-
Button in the view on the left.
Declaration
Swift
@IBOutlet public var leftButton: UIButton!
-
Button in the view on the right.
Declaration
Swift
@IBOutlet public var rightButton: UIButton!
-
Label for tracking the tapping count.
Declaration
Swift
@IBOutlet public var tappingCountLabel: UILabel!
-
The number formatter to use to format the count for the count label.
Declaration
Swift
lazy open var countFormatter: NumberFormatter { get set }
-
Override to fire the timer every 100 milliseconds.
Declaration
Swift
public override var timerInterval: TimeInterval { get }
-
Override viewDidLoad to setup the touch actions in case they aren’t in the nib.
Declaration
Swift
override public func viewDidLoad()
-
Override update unit label text to do nothing because the unit label doesn’t change after it is set.
Declaration
Swift
override open func updateUnitLabelText()
-
Override view will appear to set the unit label text.
Declaration
Swift
override public func viewWillAppear(_ animated: Bool)
-
Override view did appear to set up the button rects.
Declaration
Swift
override public func viewDidAppear(_ animated: Bool)
-
Override the timer to check if finished.
Declaration
Swift
override public func timerFired()
-
Override to return the instruction with the formatted text replaced.
Declaration
Swift
override public func spokenInstruction(at duration: TimeInterval) -> String?
-
Listen to the gesture recognizer should receive method and always return false.
Declaration
Swift
public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool