Newer
Older
XinYang_IOS / XYSW / YH_Untis / Untis.h
@zhangfeng zhangfeng on 7 Dec 2023 896 bytes 1.8.0
//
//  Untis.h
//  YHScrollView_Test
//
//  Created by Jim on 2021/9/3.
//

#import <Foundation/Foundation.h>
#import <Photos/PHPhotoLibrary.h>

NS_ASSUME_NONNULL_BEGIN

@interface Untis : NSObject

+ (BOOL)isIPhoneXSeries;

// 判断是否有相机权限
+(void)judgeIsHaveCamerCompleteBlock:(void(^)(BOOL granted))authorizationBlock;

// 判断是否有相册权限
+(void) judgeIsHaveAlbumCompleteBlock:(void(^)(BOOL granted))authorizationBlock;

// 判断是否有麦克风权限
+(void)judgeIsHaveMicrophoneCompleteBlock:(void(^)(BOOL granted))authorizationBlock;


//有没有中文
+(BOOL)Fish_haveChinese:(NSString *)str;
//有没有表情
+ (BOOL)Fish_haveEmoji:(NSString *)string;
//密码验证:有特殊字符,有大写字母,有数字
+(BOOL)Fish_checkPassword:(NSString*)password;

+ (NSString *)AFPercentEscapedStringFromString:(NSString *)string;

@end

NS_ASSUME_NONNULL_END