ios - How to make textLabel on UITableViewCell with multiple colours? -


i using uitableview listing names of person , implement uisearchbar searching different names.i want change textlabel color on uitableviewcell when user searching on specific item,for example when typing name “ant” on searchbar,need change color of “ant” on uitableview. please me.

you need @ using nsattributedstring specify colour of text. need process visible cells on each change in search criteria , check when configuring cells display, find search text in name string , set appropriate format attributes found range.


Comments