Giter Site home page Giter Site logo

jinxiansen / jhud Goto Github PK

View Code? Open in Web Editor NEW
1.0K 42.0 153.0 2.66 MB

A full screen of the HUD when loading the data (Objective-C).

License: MIT License

Objective-C 98.77% Ruby 1.23%
ios hud empty loading loading-animations animtion notice toast mbprogresshud svprogresshud

jhud's Introduction

Version License Platform Support  Language GitHub stars Download

JHUD is a full screen of the HUD when loading the data (Objective-C) .

cn Chinese (Simplified):

Screenshots

H U D
image image image
image image image

Requirements

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

CocoaPods is the recommended way to add JHUD to your project.

First, add a pod entry for JHUD to your Podfile.

pod 'JHUD'

Second, install JHUD into your project:

pod install

Third, include JHUD wherever you need it with #import "JHUD.h".

Manually

  1. Download the latest code version .
  2. Open your project in Xcode,drag the JHUD folder into your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.
  3. You need it with #import "JHUD.h".

Usage

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 hideForView:self.view];

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).

Contacts

If you wish to contact me, email at: [email protected]

Sina : @晋先森
Twitter : @jinxiansen

License

JHUD is released under the MIT license. See LICENSE for details.

jhud's People

Contributors

jinxiansen avatar status302 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

jhud's Issues

楼主,你的这个框架会内存泄露啊

我在一个 navigationController 放 JHUD,当我 pop 回去的时候,就发现内存泄露了

2016-08-04 23:18:38.458 CBWEmptyViewDemo[913:20546] Memory Leak: (
TestViewController,
UIView,
JHUD
)

螢幕打橫時

您好,我有個疑問
當我螢幕打橫時卻發生這樣的問題

simulator screen shot 2017 3 2 10 12 44

不曉得是不是我寫錯了什麼?(附上代碼)

@property (nonatomic, strong) JHUD *hudView;
- (void)viewDidLoad
{
    [super viewDidLoad];
    [self showHUD];
  _hudView = [[JHUD alloc]initWithFrame:self.view.bounds];
  _hudView.messageLabel.text = @"hello ,this is a circle animation";
}
-(void)showHUD {
  [_hudView showAtView:self.view hudType:JHUDLoadingTypeDot];
}

indicatorViewSize这个是做什么的

有时只是想显示自定义的动画,却发现下面有一块视图,不知道是做什么用的,

//[self configureBaseInfo];
-(void)configureBaseInfo
{
    self.backgroundColor = [UIColor groupTableViewBackgroundColor];
    self.indicatorViewSize = CGSizeMake(100, 100);
}

把这个注释掉//[self configureBaseInfo];,发现达到了自己想要的效果。在添加文字,也是可以正常显示的,那么问题来了,这个是做啥很么用的,注释掉会有什么影响没

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.