Skip to content

Instantly share code, notes, and snippets.

@sgtmt
Created December 15, 2016 16:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sgtmt/227cbb6718268b2a95ca1d0242c5d302 to your computer and use it in GitHub Desktop.
Save sgtmt/227cbb6718268b2a95ca1d0242c5d302 to your computer and use it in GitHub Desktop.
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