代码之家  ›  专栏  ›  技术社区  ›  Steve Moser

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

  •  1
  • Steve Moser  · 技术社区  · 9 年前

    large tab bar preview

    2 回复  |  直到 9 年前
        1
  •  4
  •   Brandon Nott    9 年前

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

    https://developer.apple.com/videos/play/wwdc2017/204/

    Check Preserve Vector Data

    enter image description here

        2
  •  2
  •   InsertWittyName    9 年前

    新物业为:

    // 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上(uitabaritem继承自)。我在头文件中留下了相关的注释。

    也可以在Interface Builder的“accessibility”属性下进行设置。

    推荐文章