Deprecated UIButton Methods

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

Deprecated in iOS 3.0

font

The font used to display text on the button. (Deprecated in iOS 3.0. Use the font property of the titleLabel instead.)

@property(nonatomic, retain) UIFont *font
Discussion

If nil, a system font is used. The default value is nil.

Availability
  • Available in iOS 2.0 and later.
  • Deprecated in iOS 3.0.
Declared In
UIButton.h

lineBreakMode

The line break mode to use when drawing text. (Deprecated in iOS 3.0. Use the lineBreakMode property of the titleLabel instead.)

@property(nonatomic) NSLineBreakMode lineBreakMode
Discussion

This property is one of the constants described in the UILineBreakMode enumeration in NSString UIKit Additions Reference. The default value is UILineBreakModeMiddleTruncation.

Availability
  • Available in iOS 2.0 and later.
  • Deprecated in iOS 3.0.
Declared In
UIButton.h

titleShadowOffset

The offset of the shadow used to display the receiver’s title. (Deprecated in iOS 3.0. Use the shadowOffset property of the titleLabel instead.)

@property(nonatomic) CGSize titleShadowOffset
Discussion

The horizontal and vertical offset values, specified using the width and height fields of the CGSize data type. Positive values always extend up and to the right from the user's perspective. The default value is CGSizeZero.

Availability
  • Available in iOS 2.0 and later.
  • Deprecated in iOS 3.0.
Declared In
UIButton.h