Created
December 15, 2016 16:31
-
-
Save sgtmt/227cbb6718268b2a95ca1d0242c5d302 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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