MPLoadIndicator

@interface MPLoadIndicator : NSObject

A basic load indicator, with the option to set a text.

  • The indicator view.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) UIActivityIndicatorView *indicatorView;

    Swift

    var indicatorView: UIActivityIndicatorView! { get set }
  • View holding the load indicator.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) UIView *parentView;

    Swift

    var parentView: UIView! { get set }
  • The text view

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) UITextView *textView;

    Swift

    var textView: UITextView! { get set }
  • Instantiates the indicator and places the indicator in a view. - parameter: view The view to hold the indicator.

    Declaration

    Objective-C

    - (id)initOnView:(UIView *)view;

    Swift

    init!(on view: UIView!)

    Parameters

    view

    The view to hold the indicator.

  • Instantiates the indicator and places the indicator in a view with a given text. - parameter: view The view to hold the indicator. - parameter: text The text to display with the indicator.

    Declaration

    Objective-C

    - (id)initOnView:(UIView *)view withText:(NSString *)text;

    Swift

    init!(on view: UIView!, withText text: String!)

    Parameters

    view

    The view to hold the indicator.

    text

    The text to display with the indicator.

  • Start and show the indicator animation

    Declaration

    Objective-C

    - (void)start;

    Swift

    func start()
  • Stop and hide the indicator animation

    Declaration

    Objective-C

    - (void)stop;

    Swift

    func stop()