Advertisements
MBProgressHUD Activity Indicator
Name of the library : MBProgress HUD
The most commonly used activity indicator third party library is MBProgressHUD.
Demo of MBProgressHUD
Cocoapods
pod 'MBProgressHUD', '~> 1.2.0'
Carthage
github "jdg/MBProgressHUD" ~> 1.2.0
Objective C sample code
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; hud.mode = MBProgressHUDModeDeterminateHorizontalBar; hud.label.text = @"Loading"; // Update progress to required value periodically hud.progress = hud.progress + 0.25;
Progress Modes (MBProgressHUDMode)
- MBProgressHUDModeIndeterminate - UIActivityIndicatorView
- MBProgressHUDModeDeterminate - A round, pie-chart like, progress view.
- MBProgressHUDModeDeterminateHorizontalBar - Horizontal progress bar.
- MBProgressHUDModeAnnularDeterminate - Ring-shaped progress view.
- MBProgressHUDModeCustomView - Shows a custom view.
- MBProgressHUDModeText - Shows only labels.
Animation Modes (MBProgressHUDAnimation )
- MBProgressHUDAnimationFade - Opacity animation
- MBProgressHUDAnimationZoom - Opacity + scale animation (zoom in when appearing zoom out when disappearing)
- MBProgressHUDAnimationZoomOut - Opacity + scale animation (zoom out style)
- MBProgressHUDAnimationZoomIn - Opacity + scale animation (zoom in style)
Background styles (MBProgressHUDBackgroundStyle)
- MBProgressHUDBackgroundStyleSolidColor - Solid color background
- MBProgressHUDBackgroundStyleBlur - UIVisualEffectView or UIToolbar.layer background view
Swift sample
Coming soon....
Tips & Tricks
Coming soon....
Questions & Answers
Add your questions and we will answer here.