aboutlan / XAStatusBarHUD

An simple and easy to use cover statusbar HUD

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

XAStatusBarHUD

An simple and easy to use cover statusbar HUD

#Demo Project 2.gif 4.gif

#Installation

##Manual import:

  • Add the XAStatusBarHUD folder to your Xcode project.
  • Import the header file:#import "XAStatusBarHUD.h"

##ShowInfoMessage

 [XAStatusBarHUD showInfoWithTitle:@"Normal" image:nil];

##ShowLoadingMessage

  • HUD Keep always show
 [XAStatusBarHUD showLoadingWithTitle:@"Loading" image:nil];

##CustomHUD

  • setupHUD
[XAStatusBarHUD setFont:[UIFont boldSystemFontOfSize:14]];
[XAStatusBarHUD setTitleColor:[UIColor whiteColor]];
[XAStatusBarHUD setBackgroundColor:[UIColor grayColor]];
[XAStatusBarHUD setStayTimer:2];
  • custormMessage
//自定义控件
UILabel *label = [[UILabel alloc]init];
label.text = @"hello,CustomView!";
label.font =[UIFont systemFontOfSize:14];
label.textColor  =[UIColor redColor];

[XAStatusBarHUD showCustomWithTitle:@"Custom" image:[UIImage imageNamed:@"check_1139091_easyicon.net"] loading:NO customView:label];

About

An simple and easy to use cover statusbar HUD

License:MIT License


Languages

Language:Objective-C 100.0%