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.
基本的に、私は iOS 開発の初心者です。ユーザーにパーセンテージ (文字ではなく) を入力してもらいたいテキスト ボックスがいくつかあるので、必要なのは数字キーボードだけです。ユーザーがこれを行ったら、キーボードを簡単に取り除くこともできます。
できるだけ簡単な方法で、私を酔っ払った 5 歳の子供のように扱ってください。これを行うために必要な手順を教えてもらえますか?
UITextField を仮定すると:
textField.keyboardType = UIKeyboardTypeNumberPad;