Skip to content

Commit

Permalink
fix progress hud
Browse files Browse the repository at this point in the history
  • Loading branch information
Logan Sease committed Jan 21, 2016
1 parent 7ee93ee commit a6094bd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
18 changes: 12 additions & 6 deletions Pod/Classes/MBProgressHUD+Singleton.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#import <UIKit/UIKit.h>
#import "MBProgressHUD+Singleton.h"
#import "NSThread+Helpers.h"

@implementation MBProgressHUD (Singleton)

Expand All @@ -26,20 +27,25 @@ +(id)commonHUD

+(void)showWithTitle:(NSString*)title
{
MBProgressHUD * hud = [self commonHUD];
hud.labelText = title;
hud.labelFont = [UIFont systemFontOfSize:20];
[NSThread mainThread:^{
MBProgressHUD * hud = [self commonHUD];
hud.labelText = title;
hud.labelFont = [UIFont systemFontOfSize:20];
#if TARGET_OS_TV
hud.labelFont = [UIFont systemFontOfSize:60];
hud.labelFont = [UIFont systemFontOfSize:60];
#endif

[hud show:YES];

[hud show:YES];
}];

}

+(void)hide
{
[NSThread mainThread:^{
MBProgressHUD * hud = [self commonHUD];
[hud hide:YES];
}];
}

+(void)setupCommonHUDWithView:(UIView*)view
Expand Down
2 changes: 1 addition & 1 deletion SeaseAssist.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = "SeaseAssist"
s.version = "0.0.4"
s.version = "0.0.5"
s.summary = "A Library of Awesome Helper classes designed to help you work quickly and effeciently during iOS Development."

# This description is used to generate tags and improve search results.
Expand Down

0 comments on commit a6094bd

Please sign in to comment.