Swift How can I remove these button programmaticaly or change their action when tapped?

354 Views Asked by At

In my application I have to remove this two kind of buttons or give them another function. There were 3 days reading the net and I can't even find how they are called. So to the question: How can I programmaticaly remove them, access them, change their action when tapped? So any help will be appreciated.

Buttons marked in red

1

There are 1 best solutions below

4
Vakas On BEST ANSWER

You can only enable/disable these buttons using allowsActions property but cannot change the actions associated with them.

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.

Refer to the Apple’s Documentation