- Home /
i am working on an app for iOS Platform. i have a Input Field , but every time the White Classic keyboard comes out to take input. I want to display the keyboard with a black semi-transparent background. Can anyone help me out with this?
I tried TouchScreenKeyboard.Open("", TouchScreenKeyboardType.Default, false, false, true, true); This opens the black semi-transparent background keyboard but when i hit the input field again then the classic white keyboard comes.
I want the black semi-transparent background keyboard as my default keyboard
Finally i got the answer to my own question.
Open your project in Xcode. Open the Classes Folder. Inside it open the UI Folder. Inside it open the file $$anonymous$$eyboard.mm
Classes>UI Folder>$$anonymous$$eyboard.mm
[we can see the UI$$anonymous$$eyboardAppearance selection] http://i.stack.imgur.com/y$$anonymous$$r7n.png
In here we can see two type of keyboards
1.UI$$anonymous$$eyboardAppearanceDefault
2.UI$$anonymous$$eyboardAppearanceAlert
and below there is a line that decides which type of keyboard should appear
keyboardAppearances[alert ? 1 : 0],
Just change the order of the keyboard appearance according to your convenience
This is a cheap solution. Actually you should change the value of the alert bool from wherever this method is being called
[see the Unity$$anonymous$$eyboard_Show $$anonymous$$ethod]
Your answer
Follow this Question
Related Questions
Changing UGUI InputField keyboard appearance on iOS 2 Answers
How to keep opening of keyboard when focus transferred to another input field by programmatically.? 0 Answers
WEBGL input field on Android and iOS 0 Answers
Android InputField Keyboard Showing Light Gray Text on White background, Hard to See 1 Answer
Inputfield Stop highlight 0 Answers