I have a UITableView and a UISearchBar associated with it. I want to highlight the searched string if it is a substring in the row.
            Asked
            
        
        
            Active
            
        
            Viewed 1,717 times
        
    -1
            
            
        1 Answers
2
            If I understand your question, you're done with searching within UITableView if so then to highlight the result you've two options,
If you're targeting iOS 6.0 and higher then there's one NSAttributedString see the doc here, you can bold, colored or even apply different fonts for the substring within a string something like,
This is an example of highlighted
text
Check this, How do you use NSAttributedString?
Or if you also want to support iOS 6 previous versions then you have to use attributed labels to highlight your search, some well implemented labels are,
If you've not implemented searching in UITableView yet then here's an example.
 
     
    