Question

I have a tableview with dynamic data from a parsed xml file. I have set a default font size, and for most entries, it works okay. However, some have an entry that seems to be cut off.. and Apple simple adds "..." to the end.

Is there a way I can implement something like a slowly scrolling banner to accommodate this? And if not, is there a way I can make the text fit if it exceeds the size without making a global change to all entries?

Was it helpful?

Solution

I think for the slowly scrolling banner you would have to implement that yourself by animating your views.

If you don't expect your text to exceed the size by that much you could try using minimumScaleFactor in ios6:

[label setMinimumScaleFactor:.75f]; 

or minimumFontSizeSize for < ios6. These essentially shrink the text to fit the frame. p.s. you can configure these in interface builder

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top