I want to render a label with the following look:
LongTitle 1234
Title 6789
As you can see, this looks like a table with an invisible margin. TTStyledTextLabel does not support tables as far I can tell, but it supports styling div/spans to some degree. In regular HTML, I could accomplish this with:
<span style="width:200px;float:left;">LongTitle</span><span>1234</span><br/>
<span style="width:200px;float:left;">Title</span><span>6789</span>
I have tried the following, but then the all the text is put on top of each other:
<span class="leftCell">LongTitle</span><span class="rightCell">1234</span>
and
- (TTStyle*)leftCell{
return [TTBoxStyle styleWithMargin:UIEdgeInsetsMake(0, 0, 0, 0)
padding:UIEdgeInsetsMake(0, 0, 0, 0)
minSize:CGSizeMake(200, 0) position:TTPositionFloatLeft next:nil];
}
Any suggestions? And yes, I have tried using a UIWebView. That works, but even with a local string, the "flicker" (time to load contents into webview after the view is loaded) is unacceptable.