ユーティリティーエリア(画面右側)を隠すコマンド
→⌘オプション0
fa-chevron-circle-rightコード
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
import UIKit class ViewController: UIViewController { @IBOutlet weak var myLabel: UILabel! @IBAction func getOmikuji(_ sender: Any) { let results = ["大吉", "吉", "中吉", "小吉", "凶"] let random = arc4random_uniform(UInt32(results.count)) self.myLabel.text = results[Int(random)] } override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view. } } |