views:

54

answers:

1

Is it possible to format only a part of the text of a string?

User searches, and if the search entry is found in the array, it will highlight that particular part of the text only.

TIA.

A: 

Not in a standard UILabel, it isn't. You could draw the cell's contents yourself in its -drawRect: method, and draw the string in parts with different attributes. Or you could use one of the several third-party label classes out there that allow this. (For example, Three20's TTStyledLabel.)

Sixten Otto