UIContentSizeCategoryAdjusting.h
2019-06-19 本文已影响0人
zhYx_
#if USE_UIKIT_PUBLIC_HEADERS || !__has_include(<UIKitCore/UIContentSizeCategoryAdjusting.h>)
//
// UIContentSizeCategoryAdjusting.h
// UIKit
//
// Copyright (c) 2016-2018 Apple Inc. All rights reserved.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKitDefines.h>
NS_ASSUME_NONNULL_BEGIN
///!!!: 内容大小类别自动调整 <协议>
NS_CLASS_AVAILABLE_IOS(10_0) @protocol UIContentSizeCategoryAdjusting <NSObject>
/// 在修改UIContentSizeCategory枚举时,相应元素是否应自动更新字体
/*
必须使用一下方法实例化的Font,此属性才生效
+ preferredFontForTextStyle:
+ preferredFontForTextStyle:compatibleWithTraitCollection:
- [UIFontMetrics scaledFontForFont:]
*/
@property (nonatomic) BOOL adjustsFontForContentSizeCategory;
@end
NS_ASSUME_NONNULL_END
#else
#import <UIKitCore/UIContentSizeCategoryAdjusting.h>
#endif