Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
ゲームに「続ける」ショートカットを追加したいです。しかし、ユーザーがゲームを完全に終了したら、これを削除するか、別のショートカットに置き換えてください。これは可能ですか?3D タッチが iOS システムによって処理されることは知っていますが、まだいくつかのオプションがあるかもしれません。
[UIApplication sharedApplication].shortcutItems = @[];
私のために働いた。配列から何かを削除することを示唆する他の答えは、shortcutItems が可変ではないため機能しませんでした。