UITextView insert text in the textview text

后端 未结 6 1022
谎友^
谎友^ 2020-12-10 03:16

I want to have to occasionally insert text into the UITextView text object. For example, if the user presses the \"New Paragraph\" button I would like to insert a double ne

6条回答
  •  不知归路
    2020-12-10 03:40

    For Swift 3.0

    You can append text by calling method insertText of UITextView Instance.

    Example:

    textView.insertText("yourText")
    

提交回复
热议问题