実現したい事
画面上部のnavigationvarの部分の色を背景の色と一緒にしたい。
swfit
1import UIKit 2 3class topViewController: ViewController { 4 5 @IBOutlet var titlelbl: UILabel? 6 7 @IBAction func StartButton(_ sender: Any) { 8} 9 @IBAction func HitoryButton(_ sender: Any) { 10 } 11 12 override func viewDidAppear(_ animated: Bool) { 13 super.viewDidAppear(animated) 14 15 // NavigationBarを表示したい場合 16 self.navigationController?.setNavigationBarHidden(false, animated: false) 17 } 18}
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/05/26 03:46