当隐藏键盘ios(ipad)时隐藏快捷键栏
答
“它只显示在模拟器中,如果尝试在设备上它将隐藏快捷方式也隐藏在设备上。 - 约翰尼·库马尔 ”
答
由于iOS的9测试版2,该文件仍然是在地面上非常薄(依稀误导),但我一直在使用这种方法UITextFieldDelegate成功了实现。
- (void)textFieldDidBeginEditing:(UITextField*)textField
{
UITextInputAssistantItem* item = [textField inputAssistantItem];
item.leadingBarButtonGroups = @[];
item.trailingBarButtonGroups = @[];
}
是啊,该解决方案可以隐藏的快捷方式,但我想继续编辑时的快捷方式,并隐藏快捷键时,隐藏键盘 – Leo
它仅表示模拟器如果你尝试在设备上它会隐藏快捷键也尝试在设备上。 –
它的工作对设备很好..上@Leo –