Swift 如何以编程方式删除这些按钮或在点击时更改它们的操作?
Swift How can I remove these button programmaticaly or change their action when tapped?
在我的应用程序中,我必须删除这两种按钮或为它们提供其他功能。在网上看了 3 天,我什至找不到他们的名字。那么问题来了:我如何以编程方式删除它们、访问它们、在点击时更改它们的操作?因此,我们将不胜感激。
您只能使用 allowsActions
属性 enable/disable 这些按钮,但不能更改与它们关联的操作。
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
在我的应用程序中,我必须删除这两种按钮或为它们提供其他功能。在网上看了 3 天,我什至找不到他们的名字。那么问题来了:我如何以编程方式删除它们、访问它们、在点击时更改它们的操作?因此,我们将不胜感激。
您只能使用 allowsActions
属性 enable/disable 这些按钮,但不能更改与它们关联的操作。
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