项目中有需要隐藏键盘快捷键的需求 这里记录一下
func hideAssistantBar() {
if #available(iOS 9.0, *) {
let assistant = self.inputAssistantItem
assistant.leadingBarButtonGroups = []
assistant.trailingBarButtonGroups = []
}
}
项目中有需要隐藏键盘快捷键的需求 这里记录一下
func hideAssistantBar() {
if #available(iOS 9.0, *) {
let assistant = self.inputAssistantItem
assistant.leadingBarButtonGroups = []
assistant.trailingBarButtonGroups = []
}
}