You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is definatley not an issue, but I have a question to ask as I am in the learning stage. I would like to know how I can add action to the parent KCFloatingActionButton.
I want to add something like
"button.addTarget(self, action: "buttonAction:", forControlEvents: UIControlEvents.TouchUpInside)"
to both KCFloatingActionButton and to the KCFloatingActionButtonItem.
Could you please guide me.
Many thanks in advance,
Regards,
The text was updated successfully, but these errors were encountered:
Unfortunately, KCFloatingActionButton is not UIButton. So, you cannot use addTarget method.
But, if you want to add touch event to KCFloatingActionButton, it is available through UITapGestureRecogonizer.
Below is the sample code.
Hello Author,
This is definatley not an issue, but I have a question to ask as I am in the learning stage. I would like to know how I can add action to the parent KCFloatingActionButton.
I want to add something like
"button.addTarget(self, action: "buttonAction:", forControlEvents: UIControlEvents.TouchUpInside)"
to both KCFloatingActionButton and to the KCFloatingActionButtonItem.
Could you please guide me.
Many thanks in advance,
Regards,
The text was updated successfully, but these errors were encountered: