ios - Flush edges when setting NSBackgroundColorAttributeName for attributed string -


i have nsattributedstring, part of highlighted using nsbackgroundcolorattributename property.

but final output looks

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

Popular posts from this blog

wireshark - USB mapping with python -

c++ - nodejs socket.io closes connection before upgrading to websocket -

Deploying Qt Application on Android is really slow? -