下記の場合、textがletで変更できないとエラーになります
swift
1func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, 2 replacementText text: String) -> Bool { 3 if text == "\n" { 4 text = " " 5 } 6 return true 7 }
回答1件
あなたの回答
tips
プレビュー
投稿2019/05/19 15:23
下記の場合、textがletで変更できないとエラーになります
swift
1func textView(_ textView: UITextView, shouldChangeTextIn range: NSRange, 2 replacementText text: String) -> Bool { 3 if text == "\n" { 4 text = " " 5 } 6 return true 7 }
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。