How to disable iOS 8 emoji keyboard?

前端 未结 12 2143
说谎
说谎 2020-12-03 00:33

Is there any option to stop showing the emoji keyboard in iOS 8? It is not available in numpad and secure text but for email it is there. If it is not possible to disable i

12条回答
  •  温柔的废话
    2020-12-03 01:25

    This is swift version.

    func textView(textView: UITextView, shouldChangeTextInRange range: NSRange, replacementText text: String) -> Bool {
        if textView.isFirstResponder() {
           if textView.textInputMode?.primaryLanguage == nil || textView.textInputMode?.primaryLanguage == "emoji" {
                return false;
            }
        }
        return true;
    }
    

提交回复
热议问题