1

almost finished my App. All calculations, ..... are now working. As I have several Text Fields on the view and when I'm showing keyboard, I cannot see what I typing Field it is hidden by the keyboard.

Do you have a method for showing transparent keyboard then people will be able to see by transparency.

Regards

1
  • Why don't you just shift the view up while editing? Changing the keyboard will probably make Apple not allow your app. I suppose you could create your own keyboard from scratch?
    – Josiah
    Commented Oct 24, 2012 at 14:21

3 Answers 3

1

You'll need to add the following code in your .m file for each view you want to add the transparent keyboard to:

- (void)viewDidLoad {
    [super viewDidLoad];

    textField1.keyboardType = UIKeyboardTypeDecimalPad;
    textField1.keyboardAppearance = UIKeyboardAppearanceAlert;
    textField2.keyboardType = UIKeyboardTypeDecimalPad;
    textField2.keyboardAppearance = UIKeyboardAppearanceAlert;

}

textField1 and textField2 are just examples. you need to add these 2 lines for each field. It's guaranteed way, I have 2 apps with these and just updated them 2 weeks ago and they were never rejected.

****You should change to the keyboard type you want.**

semi-transparent keypad

1

You should read the "Keyboard Management" section of the "Text, Web and Editing Programming Guide" in Apple documentation.

In the "Moving Content That Is Located Under the Keyboard" paragraph, they explains how to manage the keyboard properly and how to scroll your view so that the current text field is always visible and never hidden by the keyboard.

Scrolling the keyboard
(source: apple.com)

0

There's no such thing as a transparent keyboard. You need to move your text field so that it is visible when the keyboard is displayed.

2
  • Thanks. Can I reduce keyboard size ? Or even move to difference place ?
    – fred
    Commented Oct 24, 2012 at 14:32
  • No you cant, you have to move your fields parent view to show them.
    – Cfr
    Commented Oct 24, 2012 at 14:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.