Code Monkey home page Code Monkey logo

jhud's Introduction

JHUD

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

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.

Source files

Alternatively you can directly add the JHUD.h and JHUD.m source files to your project.

  1. Download the latest code version .
  2. Open your project in Xcode, then drag and drop JHUD.h and JHUD.m onto your project. Make sure to select Copy items when asked if you extracted the code archive outside of your project.
  3. Include JHUD wherever you need it with #import "JHUD.h".

Usage

hudView = [[JHUD alloc]initWithFrame:self.view.bounds];

hudView.messageLabel.text = @"This is a default activityView .";

//show
[hudView showAtView:self.view hudType:JHUDLoadingTypeActivity];

//hide 
[hudView 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 是一个加载数据时用于全屏显示的HUD,使用Objective-C编写.

##须知 JHUD 基于 "Xcode 7.3 , iOS 6+ 和ARC环境下完成的,请使用最新正式版来编译JHUD,旧版本的Xcode可能有效,但不保证会出现一些兼容性问题。

##手动安装

  1. 通过 Clone or download 下载最新版。
  2. JHUD.hJHUD.m源文件添加在你的项目之中。
  3. 导入JHUD.h

##使用

hudView = [[JHUD alloc]initWithFrame:self.view.bounds];

hudView.messageLabel.text = @"This is a default activityView .";

//显示
[hudView showAtView:self.view hudType:JHUDLoadingTypeActivity];

//隐藏 
[hudView hide];

更多的使用用例可以看Demo工程演示以及头文件(JHUD.h)。

Contacts

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

#####新浪微博 : @晋先森 #####Twitter : @jinxiansen

License

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

jhud's People

Contributors

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