如何在iOS 11中支持大型选项卡栏预览?

如何在iOS 11中支持大型选项卡栏预览?,ios,uikit,accessibility,uitabbar,dynamic-text,Ios,Uikit,Accessibility,Uitabbar,Dynamic Text,在苹果的一些应用程序中,如iOS 11中的照片,如果你在手机处于横向时按住标签栏图标,并且在你所持标签的大预览中打开了更大的可访问性大小的动态文本。我如何在我的应用程序中支持此功能?它是一个新的API还是我必须自己构建它? 新属性是: // Higher-resolution version of the standard image. Default is nil. Used for rendering assistive UI (e.g. for users with visual impa

在苹果的一些应用程序中,如iOS 11中的照片,如果你在手机处于横向时按住标签栏图标,并且在你所持标签的大预览中打开了更大的可访问性大小的动态文本。我如何在我的应用程序中支持此功能?它是一个新的API还是我必须自己构建它?

新属性是:

// Higher-resolution version of the standard image. Default is nil. Used for rendering assistive UI (e.g. for users with visual impairments who need large text). If not provided, the system may attempt to generate an image based on the standard image (for instance, by rasterizing matching PDF representations at a higher resolution).
@property(nullable, nonatomic, strong) UIImage *largeContentSizeImage API_AVAILABLE(ios(11.0));
UIBarItem(Utabaritem继承自)上的。我在头文件中留下了相关的注释

也可以在Interface Builder中的“可访问性”属性下设置此属性。

新属性是:

// Higher-resolution version of the standard image. Default is nil. Used for rendering assistive UI (e.g. for users with visual impairments who need large text). If not provided, the system may attempt to generate an image based on the standard image (for instance, by rasterizing matching PDF representations at a higher resolution).
@property(nullable, nonatomic, strong) UIImage *largeContentSizeImage API_AVAILABLE(ios(11.0));
UIBarItem(Utabaritem继承自)上的。我在头文件中留下了相关的注释


也可以在Interface Builder中的“accessibility”属性下设置此选项。

您可以使用PDF图像资源并免费获得大选项卡栏预览行为

选中PDF图像资源属性检查器中的“保留矢量数据”按钮


您可以使用PDF图像资源,免费获取大选项卡栏预览行为

选中PDF图像资源属性检查器中的“保留矢量数据”按钮