UILabel to render partial character using clip

Posted by magic-c0d3r on Stack Overflow See other posts from Stack Overflow or by magic-c0d3r
Published on 2011-02-15T22:04:06Z Indexed on 2011/02/15 23:25 UTC
Read the original article Hit count: 238

Filed under:
|
|

I want a UILabel to render a partial character by setting the lineBreakMode to clip. But it is clipping the entire character. Is there a different way to clip a word so that only partial character is displayed?

Lets say I have a string like:

"Hello Word" and that string is in a myLabel with a width that only fits the 5 characters and part of the "W" I want it still to render part of the "W" and not drop it from the render.

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about ios