|
@@ -1562,7 +1562,7 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
|
|
|
if (!_HUD) {
|
|
|
_HUD = [MBProgressHUD showHUDAddedTo:keyWindow animated:YES];
|
|
|
_HUD.mode = MBProgressHUDModeDeterminateHorizontalBar;
|
|
|
- _HUD.label.text = @"正在上传视频...";
|
|
|
+ _HUD.label.attributedText = [self getAttrStringWithText:@"正在上传视频文件..."];
|
|
|
_HUD.contentColor = [UIColor whiteColor];
|
|
|
_HUD.bezelView.style = MBProgressHUDBackgroundStyleSolidColor;
|
|
|
_HUD.bezelView.backgroundColor = HexRGBAlpha(0x000000, 0.8);
|
|
@@ -1577,7 +1577,17 @@ typedef NS_ENUM(NSInteger, CHOOSETYPE) {
|
|
|
[_HUD hideAnimated:YES];
|
|
|
}
|
|
|
}
|
|
|
-
|
|
|
+- (NSMutableAttributedString *)getAttrStringWithText:(NSString *)text {
|
|
|
+ if (![NSString isEmptyString:text]) {
|
|
|
+ NSMutableParagraphStyle *paragraphStyle = [[NSMutableParagraphStyle alloc] init];
|
|
|
+ [paragraphStyle setLineSpacing:6];//调整行间距
|
|
|
+ NSMutableAttributedString *attr = [[NSMutableAttributedString alloc] initWithString:text attributes:@{NSParagraphStyleAttributeName:paragraphStyle,NSFontAttributeName:[UIFont systemFontOfSize:16],NSForegroundColorAttributeName:HexRGB(0xffffff)}];
|
|
|
+ return attr;
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ return [[NSMutableAttributedString alloc] initWithString:@""];
|
|
|
+ }
|
|
|
+}
|
|
|
- (void)uploadImageArray:(NSMutableArray *)imageArray bucket:(NSString *)bucket {
|
|
|
[LOADING_MANAGER showHUD];
|
|
|
NSMutableArray *imageDataArray = [NSMutableArray array];
|