iphone - How to create Multicolor TextEditor in IOS -
iphone - How to create Multicolor TextEditor in IOS -
i creating texteditor application in iphone sdk. in app alter color , font when ever user needs while editing text. creating have refer of next library
ego textview-it allowed alter different font setcolor property not available richtextkit - setkeyboard, setautocorrent not availablebut non of them worked me. can 1 suggest thought create multiple color , multiple font texteditor in iphone sdk?
for multiple font , multiple color, can go cg or nsattributedstring.
nsmutableattributedstring *attributedstring = [nsmutableattributedstring attributedstringwithstring:@"colorfull text"]; [attributedstring setfont:[uifont systemfontofsize:15]]; [attributedstring settextcolor:[uicolor redcolor]]; [attributedstring settextcolor:[uicolor greencolor] range:nsmakerange(3,7)]; iphone ios6 uitextfield
Comments
Post a Comment