I tried out your Swift Timer timer tutorial but I am having a bit of trouble and need clarification to get past this point:


‘Click the “Clear” button, then hold down Control button on your keyboard and drag to the ViewController like so:

[image 1]

This will then display to you a dialogue with all the options. As you can see in the list there are the buttons we just defined in the code: Select clearButton

[image 2]

Go ahead and link up the rest of the buttons and the Label. ….’


That implies I should also drag the pauseButton, the startButton and the Label to the ViewController while holding down Control button and connecting them exactly as shown in image 1. However when I tried this, image 2 showed none of the buttons defined in the code.

From the code (below) can you see what I have missed.



import UIKit

class ViewController: UIViewController {

//   var SwiftTimer   = NSTimer()

var SwiftCounter = 17

@IBOutlet var countingLabel: UILabel!

@IBAction func startButton(sender: AnyObject) {}

@IBAction func pauseButton(sender: AnyObject) {}

@IBAction func clearButton(sender: AnyObject) {}

override func viewDidLoad() {



// Do any additional setup after loading the view, typically from a nib.

countingLabel.text = String(SwiftCounter)


override func didReceiveMemoryWarning() {


// Dispose of any resources that can be recreated.



iOS-Blog Admin Team answered