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];
尝试设置keyPadContainer.opaque = NO
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.