in Settings.bundle
我用不同的字段定義我的app preferences,其中一些是文本字段。但是,當我按下文本字段進行編輯時,鍵盤向上滑動。如何爲iPhone Bundle.settings設置UIReturnKeyType?
我的問題是鍵盤不會消失。它有一個返回按鈕。點擊它,光標跳到下一個文本字段。
我看到一些鍵盤有done
按鈕。
是否可以在Settings.bundle中設置UIReturnKeyType?
in Settings.bundle
我用不同的字段定義我的app preferences,其中一些是文本字段。但是,當我按下文本字段進行編輯時,鍵盤向上滑動。如何爲iPhone Bundle.settings設置UIReturnKeyType?
我的問題是鍵盤不會消失。它有一個返回按鈕。點擊它,光標跳到下一個文本字段。
我看到一些鍵盤有done
按鈕。
是否可以在Settings.bundle中設置UIReturnKeyType?
下面是iPhone中的鍵盤類型列表。
UIKeyboardTypeDefault,
UIKeyboardTypeASCIICapable,
UIKeyboardTypeNumbersAndPunctuation,
UIKeyboardTypeURL,
UIKeyboardTypeNumberPad,
UIKeyboardTypePhonePad,
UIKeyboardTypeNamePhonePad,
UIKeyboardTypeEmailAddress,
UIKeyboardTypeDecimalPad,
UIKeyboardTypeAlphabet = UIKeyboardTypeASCIICapable
這是鏈接到Apple文檔鏈接。
您可以設置上面的任何人。
self.myTextView.keyboardType = UIKeyboardTypeDefault;
在界面生成器中,您可以在檢查器中選擇您想要的鍵盤。 如果它是一個NumberPad,則沒有「完成」或「返回」按鈕。
想要添加此按鈕,請看:http://www.neoos.ch/news/46-development/54-uikeyboardtypenumberpad-and-the-missing-return-key