簡體   English   中英

更改主屏幕快速操作圖標的位置

[英]changing Home Screen Quick Actions icon position

問:如何在UIApplicationShortcutItems中將圖標放置在文本的左側?

觀察:我正在向應用程序添加主屏幕快速操作,並且自定義圖標在文本的右側。 我研究了多個大型應用程序,例如facebook,snapchat等,並系統地觀察了左側圖標。 Apple文檔和Official App始終具有右對齊的圖標。

我認為您不能選擇圖標的位置:

這是蘋果員工的回答:

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

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM