BButton icon indicating copy to clipboard operation
BButton copied to clipboard

How to properly update awesomeIcon?

Open jonmadison opened this issue 9 years ago • 1 comments

I have a BButton, acting as a toggle, that utilizes the FAPlay icon before pressed, but when pressed, wants to switch to the FAStop icon. Using

- (void)addAwesomeIcon:(FAIcon)icon beforeTitle:(BOOL)before

simply adds a new icon to the existing button.

What's the recommended way of changing the button icon? instantiate a new button? I'm in the middle of creating a new API call, updateAwesomeIcon, but want to make sure there's not a better recommended way of doing this.

jonmadison avatar Oct 14 '14 17:10 jonmadison

I was also wanting to know how to do what @jonmadison has mentioned, but to also be able to update the text at the same time.

gotnull avatar Jan 30 '15 05:01 gotnull