2016-06-08 39 views
0

我想要帶有數字鍵盤和藍色數字的鍵盤。我使用keyboardAppearance with blue color numbers IOS

myTextfield.keyboardAppearance = UIKeyboardAppearanceDefault; 

UIKeyboardTypeDecimalPad 

它給數字鍵盤與黑色數字。我如何獲得藍色數字? 我得到: enter image description here

但我想這些1,2,3數字在藍色。我怎麼能得到它?

+2

你不能沒有創建自己的自定義鍵盤。 – rmaddy

+0

我認爲你需要實現你的自定義鍵盤 –

+0

演示,但它很快,也許它會幫助你http://code.tutsplus.com/tutorials/ios-8-creating-a-custom-keyboard-in-swift- -cms-22344 – kb920

回答

0

這不是可以在Apple的默認鍵盤實現上自定義的東西。如果你願意,你可以走自己創建的路徑,或者尋找一個支持這個的開源鍵盤控件。

但是,我強烈建議不要這樣做,就像改變數字的顏色一樣簡單。 iOS用戶習慣使用默認鍵盤,並且在不需要的時候向他們展示其他內容可能會造成混淆。