Skip to content

Commit 4fc9b87

Browse files
committed
Update
1 parent 1dd20ac commit 4fc9b87

2 files changed

Lines changed: 96 additions & 0 deletions

File tree

LICENSE

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2015 Wilson-yuan <wilson.yuan.dev@gmail.com>
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# WSProgressHUD
2+
This is a beauful hud view for iPhone &amp; iPad
3+
4+
![Demo](https://raw.githubusercontent.com/devSC/WSProgressHUD/master/Demo/Demo.gif)
5+
6+
#Usage
7+
To run the WSProgressHUD project
8+
9+
``` objc
10+
//Show on the self.view
11+
12+
@implementation ViewController
13+
{
14+
WSProgressHUD *hud;
15+
}
16+
- (void)viewDidLoad {
17+
[super viewDidLoad];
18+
// Do any additional setup after loading the view, typically from a nib.
19+
20+
//Add HUD to view
21+
hud = [[WSProgressHUD alloc] initWithView:self.navigationController.view];
22+
[self.view addSubview:hud];
23+
24+
//show
25+
[hud showWithString:@"Wating..." maskType:WSProgressHUDMaskTypeBlack];
26+
27+
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(1 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
28+
[hud dismiss];
29+
});
30+
31+
}
32+
33+
//Show on the window
34+
//show
35+
[WSProgressHUD show];
36+
37+
//Show with mask
38+
[WSProgressHUD showWithMaskType:WSProgressHUDMaskTypeBlack];
39+
40+
//Show with mask without tabbar
41+
[WSProgressHUD showWithStatus:@"Loading..." maskType:WSProgressHUDMaskTypeBlack maskWithout:WSProgressHUDMaskWithoutTabbar];
42+
43+
//Show with string
44+
[WSProgressHUD showWithStatus:@"Loading..."];
45+
46+
//Show with facebook shimmering
47+
[WSProgressHUD showShimmeringString:@"WSProgressHUD Loading..."];
48+
49+
//Show with Progress
50+
[WSProgressHUD showProgress:progress status:@"Updating..."];
51+
52+
//Show with image
53+
[WSProgressHUD showSuccessWithStatus:@"Thanks.."];
54+
55+
//Show with string
56+
[WSProgressHUD showImage:nil status:@"WSProgressHUD"]
57+
58+
//Dismiss
59+
[WSProgressHUD dismiss];
60+
```
61+
62+
##Thanks
63+
64+
@Shimmering
65+
@SVProgressHUD
66+
@MMMaterialDesignSpinner
67+
68+
## Author
69+
Wilson-yuan, wilson.yuan.dev@gmail.com
70+
71+
## License
72+
WSProgressHUD is available under the MIT license. See the LICENSE file for more info.
73+
74+
75+
76+
77+

0 commit comments

Comments
 (0)