Disable autocorrect UITextView

后端 未结 1 1773
抹茶落季
抹茶落季 2021-01-25 03:59

Does anyone know how to disable autocorrect programming in uitextview? I have the following code, but it doesn\'t work.

- (void)_setUpTextView {
    self.textVie         


        
相关标签:
1条回答
  • 2021-01-25 04:55

    Whoa there buddy, you commented out your own answer. Make this change:

    self.textView.autocorrectionType = UITextAutocorrectionTypeNo;
    

    And you should be good to go. autoCorrectionType does not take a boolean as an argument.

    0 讨论(0)
提交回复
热议问题