Create a loading state with UIActivityIndicator
trevorgehman opened this issue · comments
Trevor Gehman commented
I would love the ability to easily set a state on a button of "loading" and have it show a UIActivityIndicator in lieu of the button text.
self.loginButton.shouldShowLoading = YES;
Jesse Squires commented
Hey @trevorgehman -- that's interesting. Not sure how this fits into this repo, exactly. Sounds like it might be specific to your use-case.
You should be able to subclass BButton
and implement this. However, if you run into issues, let me know.
I'm always happy to accept PRs :)
Trevor Gehman commented
You're right -- I'll just subclass it! Thanks!