jinxiansen / JHUD
- вторник, 19 июля 2016 г. в 03:12:45
Objective-C
A full screen of the Hud when loading the data (Objective-C).
JHUD
is a full screen of the HUD when loading the data (Objective-C) .JHUD
works on "Xcode 7.3 , iOS 6+ and requires ARC to build.
You will need the latest developer tools in order to build JHUD
. Old Xcode versions might work, but compatibility will not be explicitly maintained.
CocoaPods is the recommended way to add JHUD to your project.
Add a pod entry for JHUD to your Podfile.
pod 'JHUD'
Second, install JHUD into your project:
pod install
Include JHUD wherever you need it with #import "JHUD.h"
.
JHUD
folder into your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.#import "JHUD.h"
.hudView = [[JHUD alloc]initWithFrame:self.view.bounds];
hudView.messageLabel.text = @"hello ,this is a circle animation";
//show
[hudView showAtView:self.view hudType:JHUDLoadingTypeCircle];
//hide
[hudView hide];
Class method :
[JHUD showAtView:self.view message:@"Hello, this is a message"];
[JHUD hide];
For more examples, including how to use JHUD , take a look at the bundled demo project. API documentation is provided in the header file (JHUD.h).
JHUD is released under the MIT license. See LICENSE for details.