Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
デフォルトでは、UITextFieldキーボード タイプをNumber Padに設定して表示すると、上部のキーの上にキーラインが表示されません (iOS10)。これを解決する簡単な方法はありますか?
UITextField
Number Pad
レイアウトの下部に 1px UIView を追加する (おそらくキーボード通知に基づいて表示/非表示にする) など、いくつかのオプションがありますが、最も簡単な解決策は、空のツールバーをUITextFieldのアクセサリ ビューとして追加することです。
myTextField.inputAccessoryView = UIToolbar()
問題を解決するもの: