Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
import UIKit
class ViewController: UIViewController {
let testData_a = ["0","1","3","0","2"]
let testData_b = ["1","2","3","4","5"]
let testData_c = ["1","0","3","2","0"]
@IBOutlet weak var testBtn_a: UIButton!
@IBOutlet weak var testBtn_b: UIButton!
@IBOutlet weak var testBtn_a: UIButton!
@IBOutlet weak var title_Label: UILabel!
override func viewDidLoad() {
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
title_Label.text = testData_a[0]
testBtn_a.setTitle(testData_a[0], for: UIControlState.normal)
testBtn_b.setTitle(testData_b[0], for: UIControlState.normal)
testBtn_c.setTitle(testData_c[0], for: UIControlState.normal)
}
override func didReceiveMemoryWarning() {
super.didReceiveMemoryWarning()
// Dispose of any resources that can be recreated.
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment