-1
取出黑色的背景,这是我的函数如何当键盘出现
- (void)keyboardWillShow:(NSNotification *)notification
{
keyboardSize = [notification.userInfo[UIKeyboardFrameBeginUserInfoKey] CGRectValue].size;
CGRect frame = [self.tableView frame];
frame.size.height -= keyboardSize.height;
[self.tableView setFrame:frame];
}
它工作得很好,但是当键盘出现有一个黑色的背景下,我想使白色或透明。
点击编辑
点击后,同时打开键盘
键盘是开放的,并准备输入
之前是有办法做到这一点?