ios - UILabel not line breaking trailing whitespace -
I have a multi line UIL which I am trying to resize so that the text can fit. It works just fine for the text, but I am adding it to the white space to place the images in the text. When the text ends with whitespace for these images, the label does not wrap the white space, here's a couple screenshots, one with the text I'm trying to get, and with one of the images where you see The label does not wrap in a second line.
In the second image, the text assigned to the label is about 40 spaces, and this word will not be wrapped, I Any suggestions on how to do this?
As mentioned in maddy, it is a bad thing to use the space to break the line Consideration
Using \ n
instead of space will give you the desired results.
Comments
Post a Comment