We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
删除单词末尾最后一个字符,键盘默认变成大写输入。
比如输入“Hello thr”,删除最后一个r时,键盘会自动切换到大写输入。
iPhoneX iOS14.2
public lazy var textView: YYTextView = { let textView = YYTextView() var placeholder = "Comment" let infoString = UserDefaults.LoginInfo.value(forKey: .userInfo) as? String if let data = infoString?.data(using: .utf8) { if let info = try? JSON(data: data) { if let nick_name = info["nick_name"].string { placeholder = placeholder + " as " + nick_name } } } textView.tintColor = TSApprearance.Colors.theme textView.textAlignment = .left textView.placeholderAttributedText = NSMutableAttributedString(string: placeholder, attributes: [NSAttributedString.Key.font: UIFont.avenirRoman(size: 12.0), NSAttributedString.Key.foregroundColor: UIColor(65.0, 65.0, 65.0, 0.4)]) textView.font = .avenirRoman(size: 12.0) textView.textContainerInset = UIEdgeInsets(top: 13.0, left: -3.0, bottom: 13.0, right: -3.0) textView.textColor = TSApprearance.Colors.Text.black textView.allowsCopyAttributedString = false return textView }()
The text was updated successfully, but these errors were encountered:
No branches or pull requests
删除单词末尾最后一个字符,键盘默认变成大写输入。
比如输入“Hello thr”,删除最后一个r时,键盘会自动切换到大写输入。
iPhoneX iOS14.2
The text was updated successfully, but these errors were encountered: