मैं AttributedString बना सकते हैं और सेस्विफ्ट 4 attributedString प्राप्त टाइपिंग विशेषताओं
typingAttributes(from textView)
विशेषताओं को जोड़ने की कोशिश कर रहा हूँ समस्या यह है कि
.typingAttributes
वापसी
[String, Any]
और
NSAttributedString(string:.. , attributes:[])
जरूरतों
[NSAttributedStringKey: Any]
मेरे कोड:
NSAttributedString(string: "test123", attributes: self.textView.typingAttributes)
मैं चक्र में सभी चाबियाँ के माध्यम से जाने के लिए और उन्हें बदलने के लिए बनाने के लिए नहीं करना चाहते हैं
NSAttributedStringKey
मुझे आश्चर्य है कि * का उपयोग typingAttributes में चाबियाँ एक तार क्यों * शब्दकोशों और नहीं NSAttributedStringKey है। आप एक बग रिपोर्ट दर्ज करना चाह सकते हैं। –
मैं अभी भी इसे काम करना चाहता हूं –
ऐसा लगता है कि इसमें दो खुले रडार हैं जो इस प्रकार के बदलावों को संबोधित करते हैं: https://openradar.appspot.com/34994725 और https://openradar.appspot.com/34402659 – Aaron