GithubHelp home page GithubHelp logo

ios4kerwin / jgprogresshud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jonasgessner/jgprogresshud

0.0 2.0 0.0 7.48 MB

Modern and extensive Apple-style progress HUD for iOS.

License: MIT License

Ruby 1.00% Objective-C 99.00%

jgprogresshud's Introduction

JGProgressHUD

Modern and extensive Apple-style progress HUD for iOS.

Overview

The ultimate progress HUD for iOS has arrived: JGProgressHUD!
• Well designed, easy to use.
• Feature-rich.
• Extensible and customizable (custom animations, indicator views and more).
• Uses the newest features of iOS: Blurred HUD (iOS 8+), parallax effect (iOS 7+).
• Backward compatibility to iOS 6.
• Well documented and maintained.
• Detects and repositions when keyboard appears/disappears.
• Voice Over/UIAccessibility support.
• And most importantly, it looks good!

Check out the Examples project to see multiple uses and some of the awesome features of JGProgressHUD in action!

GitHub release GitHub license CocoaPods Carthage compatible

Customization:

Styles:

JGProgressHUD can be displayed in 3 styles:
Extra Light
Light
Dark

Indicator Views:

By default a HUD will display an indeterminate progress indicator. You can not show an indicator view at all by setting the indicatorView property to nil. These indicator views are available:
Indeterminate progress indicator
Pie progress indicator
Ring progress indicator
Success indicator
Error indicator
Image indicator
By subclassing JGProgressHUDIndicatorView you can create a custom indicator view!

Animations:

By default a HUD will use a fade animation. Several parameters can be altered such as animation duration or animation curve. A HUD can be displayed without animation and different animations can be used. By default there are the following animations built in:
Fade
Zoom and Fade

By subclassing JGProgressHUDAnimation you can create a custom animation!

To dim the content behind the HUD set your dim color as backgroundColor of your JGProgressHUD instance.

Requirements

• Base SDK of iOS 8 or higher.
• Deployment target of iOS 6.0 or higher.
• ARC.

• JGProgressHUD can also be used by projects written in Swift. See Installation for details.

Documentation

Detailed documentation can be found on CocoaDocs.

Each method is well documented, making it easy to quickly get a great overview of JGProgressHUD. To start, see JGProgressHUD.h.

Examples

Showing indeterminate progress:
JGProgressHUD *HUD = [JGProgressHUD progressHUDWithStyle:JGProgressHUDStyleDark];
HUD.textLabel.text = @"Loading";
[HUD showInView:self.view];
[HUD dismissAfterDelay:3.0];

This displays a dark HUD with a spinner and the title "Loading", it is presented with a fade animation and is dismissed after 3 seconds with a fade animation.

Showing an error message:
JGProgressHUD *HUD = [JGProgressHUD progressHUDWithStyle:JGProgressHUDStyleDark];
HUD.textLabel.text = @"Error";
HUD.indicatorView = [[JGProgressHUDErrorIndicatorView alloc] init]; //JGProgressHUDSuccessIndicatorView is also available
[HUD showInView:self.view];
[HUD dismissAfterDelay:3.0];
Showing a custom image:
JGProgressHUD *HUD = [JGProgressHUD progressHUDWithStyle:JGProgressHUDStyleDark];
HUD.indicatorView = [[JGProgressHUDImageIndicatorView alloc] initWithImage:[UIImage imageNamed:@"my_image.png"]];
[HUD showInView:self.view];
[HUD dismissAfterDelay:3.0];
Showing determinate progress:
JGProgressHUD *HUD = [JGProgressHUD progressHUDWithStyle:JGProgressHUDStyleDark];
HUD.indicatorView = [[JGProgressHUDPieIndicatorView alloc] initWithHUDStyle:HUD.style]; //Or JGProgressHUDRingIndicatorView
[HUD showInView:self.view];
[HUD dismissAfterDelay:3.0];

Important: You should always show HUDs in a UIViewController's view.

See the Examples project for more example implementations.

Installation

CocoaPods:
In your Podfile add:

pod 'JGProgressHUD'

Carthage:
In your Cartfile add:

github "JonasGessner/JGProgressHUD" >= 1.3.1

Framework:

  1. Drag the JGProgressHUD.xcodeproj file into your Xcode project.
  2. Add JGProgressHUD.framework to "Embedded Binaries" in the "General" tab of your project's target.
  3. Add the -ObjC flag to "Other Linker Flags" in the "Build Settings" tab of your project's target.

After including JGProgressHUD as framework simply import JGProgressHUD.h:

#import <JGProgressHUD/JGProgressHUD.h>

Swift projects need to import JGProgressHUD.h in the Objective-C bridging header.

Screenshots

     

License

MIT License.
© 2014-2017, Jonas Gessner.

Credits

Created and maintained by Jonas Gessner, © 2014-2017.

jgprogresshud's People

Contributors

aporat avatar gantman avatar ggurantz avatar johncoates avatar jonasgessner avatar krzyzanowskim avatar mallorypaine avatar mjwybrow avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.