I have a line like:
-Image- This is simply a test -Image- but I want to know how to separate the two lines. What to do here?
The best way I could figure to implement on the iPhone is:
UIImageView UILabel1 UILabel1 UILabel2
If there's an easier way to do this with the UI elements - i'm all ears. Otherwise, I'm trying to figure out where the text ends in UILabel1 without trial and error using sizeWithFont.
A more intricate way would be to find the size of each character at that font size using sizeWithFont, and add it all together (figuring out where the word wrap on line 1 of UILabel1, and then on Line2 as well). This feels like a hard way to solve an easy problem. Anyone know of the easy way?