Commit bc517311 authored by 曹云霄's avatar 曹云霄

修改项说明:优化加载框

parent 6f6d36f1
...@@ -145,6 +145,7 @@ static const CGFloat kDetailsLabelFontSize = 12.f; ...@@ -145,6 +145,7 @@ static const CGFloat kDetailsLabelFontSize = 12.f;
if ([subview isKindOfClass:self]) { if ([subview isKindOfClass:self]) {
return (MBProgressHUD *)subview; return (MBProgressHUD *)subview;
} }
NSLog(@"%@",subview);
} }
return nil; return nil;
} }
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
*/ */
+ (void)showHUDViewWithDefault + (void)showHUDViewWithDefault
{ {
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:SHARED_APPDELEGATE.window animated:YES]; XBLoadingView *hud = [XBLoadingView showHUDAddedTo:SHARED_APPDELEGATE.window animated:YES];
hud.animationType = MBProgressHUDAnimationZoom; hud.animationType = MBProgressHUDAnimationZoom;
hud.mode = MBProgressHUDModeIndeterminate; hud.mode = MBProgressHUDModeIndeterminate;
hud.color = [UIColor clearColor]; hud.color = [UIColor clearColor];
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
+ (void)showHUDViewWithText:(NSString *)text + (void)showHUDViewWithText:(NSString *)text
{ {
[[self class] hideHUDViewWithDefault]; [[self class] hideHUDViewWithDefault];
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:SHARED_APPDELEGATE.window animated:YES]; XBLoadingView *hud = [XBLoadingView showHUDAddedTo:SHARED_APPDELEGATE.window animated:YES];
hud.labelText = text; hud.labelText = text;
hud.margin = 20.f; hud.margin = 20.f;
hud.color = [[UIColor blackColor] colorWithAlphaComponent:0.5]; hud.color = [[UIColor blackColor] colorWithAlphaComponent:0.5];
...@@ -48,7 +48,7 @@ ...@@ -48,7 +48,7 @@
*/ */
+ (void)showHUDViewWithSuccessText:(NSString *)text + (void)showHUDViewWithSuccessText:(NSString *)text
{ {
MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:SHARED_APPDELEGATE.window animated:YES]; XBLoadingView *hud = [XBLoadingView showHUDAddedTo:SHARED_APPDELEGATE.window animated:YES];
hud.mode = MBProgressHUDModeCustomView; hud.mode = MBProgressHUDModeCustomView;
UIImage *image = [[UIImage imageNamed:@"Checkmark"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal]; UIImage *image = [[UIImage imageNamed:@"Checkmark"] imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
hud.customView = [[UIImageView alloc] initWithImage:image]; hud.customView = [[UIImageView alloc] initWithImage:image];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment