Skip to content

An iOS app Add loader into button . Add UIActivityIndicatorView as a subview of UIButton

Notifications You must be signed in to change notification settings

sourov2008/ButtonWithLoader

Repository files navigation

ButtonWithLoader

Alt Loader

Simply add UIActivityIndicator in your UIButton. Add SHLoaderButton .h .m file into your project

set your button class

    SHLoaderButton

Decelar property

       @property (weak, nonatomic) IBOutlet SHLoaderButton *btnActionLoader;

When you click button loader will automatically start animation .

To stop loader

        self.btnActionLoader.stopLoader = YES;

You can change size of loader by

          self.btnActionLoader.indicatorViewStyle = UIActivityIndicatorViewStyleGray;

You can change size of loader color from interface builder

About

An iOS app Add loader into button . Add UIActivityIndicatorView as a subview of UIButton

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published