0
我想要帶有數字鍵盤和藍色數字的鍵盤。我使用keyboardAppearance with blue color numbers IOS
myTextfield.keyboardAppearance = UIKeyboardAppearanceDefault;
與
UIKeyboardTypeDecimalPad
但我想這些1,2,3數字在藍色。我怎麼能得到它?
我想要帶有數字鍵盤和藍色數字的鍵盤。我使用keyboardAppearance with blue color numbers IOS
myTextfield.keyboardAppearance = UIKeyboardAppearanceDefault;
與
UIKeyboardTypeDecimalPad
但我想這些1,2,3數字在藍色。我怎麼能得到它?
這不是可以在Apple的默認鍵盤實現上自定義的東西。如果你願意,你可以走自己創建的路徑,或者尋找一個支持這個的開源鍵盤控件。
但是,我強烈建議不要這樣做,就像改變數字的顏色一樣簡單。 iOS用戶習慣使用默認鍵盤,並且在不需要的時候向他們展示其他內容可能會造成混淆。
你不能沒有創建自己的自定義鍵盤。 – rmaddy
我認爲你需要實現你的自定義鍵盤 –
演示,但它很快,也許它會幫助你http://code.tutsplus.com/tutorials/ios-8-creating-a-custom-keyboard-in-swift- -cms-22344 – kb920