-
Notifications
You must be signed in to change notification settings - Fork 3
/
ZYTool.h
34 lines (24 loc) · 857 Bytes
/
ZYTool.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//
// ZYTool.h
// ZYToolClass
//
// Created by 郑遥 on 15/9/22.
// Copyright © 2015年 郑遥. All rights reserved.
//
#import <Foundation/Foundation.h>
@interface ZYTool : NSObject
/** 判断是否已成年 */
+ (BOOL)isManhoodWithCertID:(NSString *)certID;
/** 判断手机号码格式是否正确 */
+ (BOOL)isValidTelNum:(NSString *)telNum;
/** 判断是否是中文用户名 */
+ (BOOL)validateNickname:(NSString *)nickname;
/** 判断是否是正整数 */
+ (BOOL)isPositiveInteger:(NSString *)number;
/** 转换日期时间字符串格式 */
+ (NSString *)convertToDateWith:(NSString *)dateString separateStr:(NSString *)separateStr;
/** 字符串前面添加空格 */
+ (NSString *)addSpace:(NSString *)string count:(int)count;
/** 将金额字段转换为货币格式 */
+ (NSString *)convertToCurrencyWith:(NSString *)String;
@end