问:如何在UIApplicationShortcutItems中将图标定位到文本的左侧?
观察:我正在将主屏幕快速操作添加到我的应用程序中,我的自定义图标位于文本的右侧。我查看了facebook、snapchat等多个大型应用程序,并系统地观察了左侧的图标。Apple文档和官方App总是有右对齐的图标。
发布于 2018-01-25 15:51:20
我不认为你可以选择图标的位置:
以下是一位苹果员工的回答:
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://stackoverflow.com/questions/48445641
复制