更改主屏幕快速操作图标位置
changing Home Screen Quick Actions icon position
问:如何将图标定位到 UIApplicationShortcutItems 中文本的左侧?
观察:我正在将主屏幕快速操作添加到我的应用程序中,我的自定义图标位于文本的右侧。
我研究了多个大型应用程序,如 facebook、snapchat 等,并系统地观察左侧图标。
Apple 文档和官方应用程序始终具有右对齐图标。
我觉得你不能选择图标的位置:
以下是 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.
问:如何将图标定位到 UIApplicationShortcutItems 中文本的左侧?
观察:我正在将主屏幕快速操作添加到我的应用程序中,我的自定义图标位于文本的右侧。 我研究了多个大型应用程序,如 facebook、snapchat 等,并系统地观察左侧图标。 Apple 文档和官方应用程序始终具有右对齐图标。
我觉得你不能选择图标的位置:
以下是 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.