44 lines
850 B
Objective-C
44 lines
850 B
Objective-C
//
|
||
// AMapNavCommonUtil.h
|
||
// Pods
|
||
//
|
||
// Created by admin on 2026/2/11.
|
||
//
|
||
|
||
#import <Foundation/Foundation.h>
|
||
#import <UIKit/UIKit.h>
|
||
#import "UIColor+ANavMap.h"
|
||
#import "UIFont+HP.h"
|
||
|
||
NS_ASSUME_NONNULL_BEGIN
|
||
|
||
@interface AMapNavCommonUtil : NSObject
|
||
|
||
/// 显示加载转圈(nil 消息时不显示文字)
|
||
+ (void)showLoadingWithMsg:(nullable NSString *)msg;
|
||
|
||
/// 关闭所有 MBProgressHUD
|
||
+ (void)dismiss;
|
||
|
||
/// 显示提示,自动 2.0s 后消失
|
||
+ (void)showMsg:(NSString *)msg;
|
||
|
||
|
||
/// 获取图片(2x)
|
||
+ (UIImage *)imageWithName:(NSString *)name;
|
||
|
||
/// 获取图片(3x)
|
||
+ (UIImage *)imageWithName3x:(NSString *)name;
|
||
|
||
/// 判断字符串是否为空
|
||
BOOL stringIsEmpty(NSString *str);
|
||
|
||
/// 判断字符串是否非空
|
||
BOOL stringIsNotEmpty(NSString *str);
|
||
|
||
+(NSString *)stringValueFromStr:(NSString *)str;
|
||
|
||
@end
|
||
|
||
NS_ASSUME_NONNULL_END
|