Kiss! Looks like this: x! - only bigger (note it comes unwrapped!)

I'm  learning Swift and Xcode by making an iching app for practise. An' Iching hexagram' is made up of six lines. I have managed to create them and get them all to display randomly at the click of a button. (Major Triumph - for me!) However, I need them to appear one line at a time, either by pressing the button six times with a new line appearing on each tap or by tapping once and the lines appearing one after the other with an interval of about 0.5 secs.

I'm sure the solution involves a loop and probably a UiKit function of some description. Please help if you can.

Thanks..Rob

Current code below:

import UIKit

class ViewController: UIViewController {



@IBOutlet weak var lineOne: UIImageView!

@IBOutlet weak var line2: UIImageView!

@IBOutlet weak var line3: UIImageView!

@IBOutlet weak var line4: UIImageView!

@IBOutlet weak var line5: UIImageView!

@IBOutlet weak var line6: UIImageView!

let linesArray:[String] = ["Y1","Y4","Y2","Y1","Y3","Y4"]

override func viewDidLoad() {
super.viewDidLoad()

// load blank line images

self.lineOne.image = UIImage(named: "line1")
self.line2.image = UIImage(named: "line2")
self.line3.image = UIImage(named: "line3")
self.line4.image = UIImage(named: "line4")
self.line5.image = UIImage(named: "line5")
self.line6.image = UIImage(named: "line6")

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


override func didReceiveMemoryWarning() {

super.didReceiveMemoryWarning()

// Dispose of any resources that can be recreated.
}

@IBAction func ThrowCoin(sender: UIImage) {

// Randomise a number for the first line
var firstRandomNumber = Int(arc4random_uniform(6))

//Construct a String with the random number
var lineOneString:String = self.linesArray[firstRandomNumber]



// Randomise a number for the second line
var secondRandomNumber = Int(arc4random_uniform(6))

//Construct a String with the random number
var line2String:String = self.linesArray[secondRandomNumber]

// Randomise a number for the third line
var thirdRandomNumber = Int(arc4random_uniform(6))

//Construct a String with the random number
var line3String:String = self.linesArray[thirdRandomNumber]

// Randomise a number for the fourth line
var fourthRandomNumber = Int(arc4random_uniform(6))

//Construct a String with the random number
var line4String:String = self.linesArray[fourthRandomNumber]

// Randomise a number for the fifth line
var fifthRandomNumber = Int(arc4random_uniform(6))

//Construct a String with the random number
var line5String:String = self.linesArray[fifthRandomNumber]

// Randomise a number for the sixth line
var sixthRandomNumber = Int(arc4random_uniform(6))

//Construct a String with the random number
var line6String:String = self.linesArray[sixthRandomNumber]



self.lineOne.image = UIImage(named: lineOneString)
self.line2.image = UIImage(named: line2String)
self.line3.image = UIImage(named: line3String)
self.line4.image = UIImage(named: line4String)
self.line5.image = UIImage(named: line5String)
self.line6.image = UIImage(named: line6String)
}

}