UITextView KeyboardAppearance property to set UIKeyboardAppearanceDark

后端 未结 1 559
天命终不由人
天命终不由人 2021-02-04 07:29

I simply want the keyboard of UITextView to appear in dark mode. However UItextView doesn\'t have such a property.

Normally for UITextField you can use the following to

1条回答
  •  忘了有多久
    2021-02-04 07:52

    There are 2 simple ways to do this

    1. Programmatically

      self.textView.keyboardAppearance = UIKeyboardAppearanceDark;
      
    2. Storyboard or nib file enter image description here

    0 讨论(0)
提交回复
热议问题