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.)
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.
See Also
Declared In
UIButton.hlineBreakMode
The line break mode to use when drawing text. (Deprecated in iOS 3.0. Use the lineBreakMode property of the titleLabel instead.)
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.
See Also
Declared In
UIButton.htitleShadowOffset
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.)
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.
See Also
Declared In
UIButton.h© 2012 Apple Inc. All Rights Reserved. (Last updated: 2012-09-19)