gpt4 book ai didi

ios - Swift 如何以编程方式删除这些按钮或在点击时更改它们的操作?

转载 作者:行者123 更新时间:2023-11-28 08:56:09 26 4
gpt4 key购买 nike

在我的应用程序中,我必须删除这两种按钮或为它们提供其他功能。在网上看了 3 天,我什至找不到他们的名字。那么问题来了:我如何以编程方式删除它们、访问它们、在点击时更改它们的操作?因此,我们将不胜感激。

Buttons marked in red

最佳答案

您只能使用 allowsActions 属性启用/禁用这些按钮,但不能更改与它们关联的操作。

Determines whether to display buttons for actions such as sending a text message or initiating a FaceTime call.

var allowsActions: Bool

By default the value of this property is true.

引用苹果的Documentation

关于ios - Swift 如何以编程方式删除这些按钮或在点击时更改它们的操作?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32987467/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com