Package apple.uikit.protocol
Interface UIContentSizeCategoryAdjusting
-
- All Known Implementing Classes:
UILabel,UISearchTextField,UITextField,UITextView
public interface UIContentSizeCategoryAdjusting
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanadjustsFontForContentSizeCategory()Indicates whether the corresponding element should automatically update its font when the device’s UIContentSizeCategory is changed.voidsetAdjustsFontForContentSizeCategory(boolean value)Indicates whether the corresponding element should automatically update its font when the device’s UIContentSizeCategory is changed.
-
-
-
Method Detail
-
adjustsFontForContentSizeCategory
boolean adjustsFontForContentSizeCategory()
Indicates whether the corresponding element should automatically update its font when the device’s UIContentSizeCategory is changed. For this property to take effect, the element’s font must be one of the following: - a font vended using +preferredFontForTextStyle: or +preferredFontForTextStyle:compatibleWithTraitCollection: with a valid UIFontTextStyle - a font vended using - [UIFontMetrics scaledFontForFont:] or one of its variants
-
setAdjustsFontForContentSizeCategory
void setAdjustsFontForContentSizeCategory(boolean value)
Indicates whether the corresponding element should automatically update its font when the device’s UIContentSizeCategory is changed. For this property to take effect, the element’s font must be one of the following: - a font vended using +preferredFontForTextStyle: or +preferredFontForTextStyle:compatibleWithTraitCollection: with a valid UIFontTextStyle - a font vended using - [UIFontMetrics scaledFontForFont:] or one of its variants
-
-