iphone - UITextView highlightedTextColor or similar option? -


मेरे पास एक कस्टम UITableViewCell एक UILabel और UITextView इसमें

जब मैं उपयोगकर्ता UITableViewCell को हाइलाइट करता है तो मैं इनमें से दोनों के लिए टेक्स्ट सफेद दिखने चाहता हूं। यह स्पष्ट रूप से highlightedTextColor को UILabel सेट करने के लिए बहुत आसान है, लेकिन UITextView में ऐसा कोई संपत्ति नहीं है UITextView जब भी सेल हाइलाइट हो जाता है / उजागर हो जाता है या क्या यह पूरा करने का एक आसान तरीका है?

धन्यवाद!

इसे मिला और मैंने सोचा था कि यह बहुत आसान था। बस UITableViewCell setHighlighted विधि का उपयोग करने की आवश्यकता है।

  - (शून्य) सेट हाइलाइटेड: (BOOL) हाइलाइट किया गया एनिमेटेड: (BOOL) एनिमेटेड { [सुपर सेट हाइलाइटेड: हाइलाइट किया हुआ एनिमेटेड: एनिमेटेड]; यदि (हाइलाइट किया हुआ) {[self.myTextView setTextColor: [UIColor whiteColor]]; } और {{self.myTextView setTextColor: [UIColor blackColor]]; }}  

Comments

Popular posts from this blog

c# - TypeConverter in propertygrid only converts from string, not to -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -