Deprecated UILabel Methods

A method identified as deprecated has been superseded and may become unsupported in the future.

Deprecated in iOS 6.0

minimumFontSize

The size of the smallest permissible font with which to draw the label’s text. (Deprecated in iOS 6.0. Use minimumScaleFactor instead.)

@property(nonatomic) CGFloat minimumFontSize
Discussion

When drawing text that might not fit within the bounding rectangle of the label, you can use this property to prevent the receiver from reducing the font size to the point where it is no longer legible.

The default value for this property is 0.0. If you enable font adjustment for the label, you should always increase this value. This property is effective only when the numberOfLines property is set to 1.

Availability
  • Available in iOS 2.0 and later.
  • Deprecated in iOS 6.0.
Related Sample Code
Declared In
UILabel.h

Deprecated in iOS 7.0

adjustsLetterSpacingToFitWidth

A Boolean value indicating whether spacing between letters should be adjusted to fit the string within the label’s bounds rectangle. (Deprecated in iOS 7.0. Hand tune instead by using NSKernAttributeName to affect tracking.)

@property(nonatomic) BOOL adjustsLetterSpacingToFitWidth
Discussion

When this property is YES, the label may alter the letter spacing of the label text to make that text fit better within the label’s bounds. This property is applied to the string regardless of the current line break mode. The default value of this property is NO.

If the value of this property to YES, the label to ignore values value returned by the tighteningFactorForTruncation method of any NSParagraphStyle objects associated with the label text.

Availability
  • Available in iOS 6.0 and later.
  • Deprecated in iOS 7.0.
Declared In
UILabel.h