Sudheer Kumar Palchuri
Sudheer Kumar Palchuri

Reputation: 2954

UITextField InputView background color issue in iOS7

I am using a custom keyboard for UITextField. So i am assigning the custom view to the TextField inputView property. The CustomView background color appears as blackcolor in iOS7, where it is clearColor lessthan iOS7. Code and screenshots(iOs6,iOS7) is below:

keypadContainer = [[UIView alloc] initWithFrame:CGRectMake(0, 0, appFrame.size.width, appFrame.size.height - ((self.view.frame.origin.y + self.view.bounds.size.height) - kp.bounds.size.height))];
    keypadContainer.backgroundColor=[UIColor clearColor];
    [keypadContainer addSubview:buttonsView]; //Here buttonsView is the view which conatins buttons for 0 to 9 digits.

    numberField.inputView = keypadContainer;
    numberField.inputView.backgroundColor=[UIColor clearColor];

iOS6 Screenshot

iOS7 Screenshot

Upvotes: 1

Views: 1870

Answers (1)

diederikh
diederikh

Reputation: 25271

Try setting keyPadContainer.opaque = NO

Upvotes: 1

Related Questions