Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kubatruhlar/JTProgressHUD
HUD designed to show YOUR views (eg. UIImageView animations) in the HUD style with one line of code.
https://github.com/kubatruhlar/JTProgressHUD
Last synced: about 2 months ago
JSON representation
HUD designed to show YOUR views (eg. UIImageView animations) in the HUD style with one line of code.
- Host: GitHub
- URL: https://github.com/kubatruhlar/JTProgressHUD
- Owner: kubatruhlar
- License: mit
- Created: 2015-06-23T11:35:47.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-09-29T10:07:33.000Z (about 8 years ago)
- Last Synced: 2024-10-04T03:34:21.697Z (3 months ago)
- Language: Objective-C
- Homepage:
- Size: 4.44 MB
- Stars: 142
- Watchers: 6
- Forks: 19
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
[![Version](https://img.shields.io/cocoapods/v/JTProgressHUD.svg)](http://cocoapods.org/pods/JTProgressHUD)
[![License](https://img.shields.io/cocoapods/l/JTProgressHUD.svg)](http://cocoapods.org/pods/JTProgressHUD)
[![Platform](https://img.shields.io/cocoapods/p/JTProgressHUD.svg)](http://cocoapods.org/pods/JTProgressHUD)# JTProgressHUD
**JTProgressHUD** is the new **HUD** designed to show **YOUR** views (eg. UIImageView animations) in the **HUD style** **with one line of code**. You can see many HUDs with easy implementation, but **the idea** is that you want that **easy implementation** with **HUD style** (background that block views below so the user knows that something is processing), but want to **show YOUR** animations/views (could be your app’s animated logo). *By DEFAULT* one animation is also included/built-in.
## Installation
There are two ways to add the **JTProgressHUD** library to your project. Add it as a regular library or install it through **CocoaPods**.`pod 'JTProgressHUD’`
You may also quick try the example project with
`pod try JTProgressHUD`
**Library requires target iOS 7.0 and above**
> **Works in both - Portrait and Landscape modes**
## Usage and Customization
JTProgressHUD is designed as a **singleton** so you don't have to care about it's instances. Just use class methods `- (void)show` and `- (void)hide` or its variations.
### Simple example:
```objective-c
// Your custom view
[JTProgressHUD showWithView:yourAnimationView];// Built-in view
[JTProgressHUD show];
```### Methods:
**View** is your custom view (eg. Animated UIImageView or whatever you want). **Style** is the style of the background. Usually it is the dark color between the view and the rest of the app. **Transition** is showing and hiding transitions. **BackgroundAlpha** is the biggest alpha for the background. *All parameters can be setup separately.*
```objective-c
+ (void)showWithView:style:transition:backgroundAlpha:;
+ (void)show;
+ (void)showWithView:;
+ (void)showWithStyle:;
+ (void)showWithTransition:;
+ (void)showWithBackgroundAlpha:;+ (void)hide;
+ (void)hideWithTransition:;+ (BOOL)isVisible;
```## Author
This library is open-sourced by [Jakub Truhlar](http://kubatruhlar.cz).
## License
The MIT License (MIT)
Copyright © 2015 Jakub Truhlar