ios - Flush edges when setting NSBackgroundColorAttributeName for attributed string -
i have nsattributedstring
, part of highlighted using nsbackgroundcolorattributename
property.
i want color flush sides of page there's no white space before when text starts , after ends.
you try below...
if attributed string you'd using then, set background color of ui object(uilabel, uibutton...).
but beleive you're using more 1 attributed strings merged, in case
you prefix , suffix string new line character "\n".
disclaimer: this comprise new line @ top , bottom along attributed string.
Comments
Post a Comment