http://blog.personal-factory.com/2015/12/05/swift-change-the-navigationbarcolor/
このサイトを参考に
UIButton.appearance().backgroundColor = UIColor.red
UIButton.appearance().tintColor = UIColor.white
UIButton.appearance().layer.cornerRadius = 7.0
このようにUIAppearanceでスタイルを指定したのですが、バックグラウンドカラーと文字色は問題なく適応されるのですが、ボタンを角丸にするUIButton.appearance().layer.cornerRadius = 7.0 が適応されません
何故なのでしょうか?
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2017/03/27 02:08