How to change keyboard background color in iOS?

前端 未结 8 1701
一整个雨季
一整个雨季 2020-12-02 16:51

I would like to know how to change the keyboard background color programmatically in iOS? The background is normally grey but I have already seen black background (behind le

8条回答
  •  没有蜡笔的小新
    2020-12-02 17:26

    Updating to swift 3.0

    let textFieldAppearance = UITextField.appearance() textFieldAppearance.keyboardAppearance = .dark //.default//.light//.alert

提交回复
热议问题