123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- //
- // PublicFunction.h
- // CommerceManage
- //
- // Created by 小花 on 2016/12/28.
- // Copyright © 2016年 vaic. All rights reserved.
- //
- #import <Foundation/Foundation.h>
- @interface PublicFunction : NSObject
- //时间是否过期
- + (BOOL)isOuttimeDate:(NSString *)dateStr;
- /**
- 获得日期时间
- @param ctime 时间戳
- @return 字符串时间
- */
- + (NSString *)getDateWith:(NSString *)ctime;
- // 返回带有小时的字符串时间
- + (NSString *)getDateWithReturnHourWith:(NSString *)ctime;
- + (NSString *)addSeparatorPointForPriceString:(NSString *)str;
- //计算内容大小
- + (CGSize)getAutoWidthWith:(NSString *)text andSize:(CGSize)size andFont:(NSInteger)font;
- //阳历转农历
- + (NSString *)getChineseCalendarWithDate:(NSString*)date;
- //获取当前日期
- + (NSString *)getCurrentDate;
- //获取当前天
- + (NSString *)getCurrentDay;
- // 获取通知权限
- + (void)isOpenMessageNotificationServiceWithBlock:(void(^)(BOOL))returnBlock;
- // 是否是手机号;
- + (BOOL)isValiMobile:(NSString *)mobile;
- /// 是否安装淘宝app
- + (BOOL)isInstallTaobaoAPP;
- //获取当前时间戳
- +(NSString *)getNowTimeTimestamp;
- //md5加密
- + (NSString *)md5:(NSString *)str;
- //检测网络是否可用
- + (BOOL)isAvailableNetworkType;
- //字典转json
- + (NSString *)convertToJsonData:(NSDictionary *)dict;
- @end
|