I have an application that displays text in a search-based UIPickerView. I want to highlight specific letters in a string that are the result of a wildcard.
For example, if I searched for “CA?”, “CAT” will be displayed in one of the lines, and I want the letter “T” to be in blue.
Any ideas? The user receives immediate feedback as he types, so performance is important.
Thanks to David for the tip to get me started.
Three20 TTStyledTextLabel pickerView: viewForRow: forComponent: reusingView: , [TTStyledText textFromXHTML: myXHTML] TTDefaultStyleSheet, . UIPickerView.
, , NSAttributedString. UIPickerView, -, NSAttributedString -, UILabel, , . , UIView pickerView:viewForRow:forComponent:reusingView: UIPickerViewDelegate.
NSAttributedString
UIPickerView
UILabel
UIView
pickerView:viewForRow:forComponent:reusingView:
UIPickerViewDelegate
Source: https://habr.com/ru/post/1758488/More articles:Тегявляется элементом уровня блока в XHTML? - htmlHow to remove curly quotes? - pythonесть все равно, чтобы увеличить визуальную студию 2010, если у вас нет прокрутки на вашей мыши - visual-studio-2010How to allow iPhone 4 only to use the application because it uses the front camera - iphoneC # Type Link Properties? - c #How to trigger an AJAX request for a date change event? - jsonFactory Sample Question - designHow to record video from the front front camera? - androidSelect data columns from .txt to .csv - pythonJBoss database connection pool for auto commit - javaAll Articles
является элементом уровня блока в XHTML? - html