【问题标题】:changing Home Screen Quick Actions icon position更改主屏幕快速操作图标位置
【发布时间】:2018-01-25 14:48:43
【问题描述】:

Q:如何在 UIApplicationShortcutItems 中将图标定位到文本的左侧?

观察:我正在向我的应用程序添加主屏幕快速操作,我的自定义图标位于文本的右侧。 我查看了多个大型应用程序,如 facebook、snapchat 等,并系统地观察左侧图标。 Apple 文档和官方应用程序始终具有右对齐图标。

【问题讨论】:

    标签: ios iphone swift homescreen 3dtouch


    【解决方案1】:

    我认为你不能选择图标的位置:

    这是 Apple 员工的回答:

    The icon position is not configurable, and iOS will swap sides of the 
    icon depending on where the app icon is placed.  For example, if the 
    app icon on the left side of the screen the icon in the shortcut menu 
    will appear on the left, but if the app is on the right side of the 
    screen then the shortcut menu items will be on the right.  In general, 
    the shortcut menu icons will be positioned so that they are directly 
    above or below the app's icon. 
    

    发件人:https://forums.developer.apple.com/thread/20568

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2021-08-20
      • 1970-01-01
      • 2017-09-29
      • 1970-01-01
      相关资源
      最近更新 更多