uitableview - iphone UITableViewCellStyleValue1 detailTextLabel overlapping textLabel -


I am using UITableViewCellStyleValue1 in my table and I am setting some text for both textLabel and detailTextLabel In the Expanded Text Label is a long URL, which overlaps with textlabel (usually "URL" and then "U."), which is useless. Is there no way to stop it, except that I make my own label and put it in the same place where the default is?

Thank you!

You have to set the minimum font size for text label.

Adjusts fontizhosphitvitha

The font size should be reduced to fit the title string in the label's rectangle, this indicates Boolean value.

Adjusts @ property (non-standard) BOOL FontSizeToFitWith

Discussion

Generally, the label text is drawn with the font specified in the property of the font If this property is set to YES, however, and if the text label's limit of text labels is greater than the rectangle, the receiver starts decreasing the font size until the string is fitted or it reaches the minimum font size is.

The default value for this property is not if you change it in yes, then you should modify the minimum font's property and set an appropriate minimum font size. Availability

  * Available in iPhone OS 2.0 and later.  

See also

  * Property Properties * @ Property Minimum Fonts  

Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -