1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- //
- // 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;
- +(NSString *)getYestDay;//获取昨天
- +(NSString *)DifferencebetweenCurrentDate:(NSString *)dateStr;
- +(void)saveAccountWithPush:(NSString *)push;
- +(NSString*)getPush;
- +(void) jumpKuaishouWithstr:(NSString *)str;
- +(void)saveAccountChangeInfoWithPush:(NSString *)push;
- +(NSString*)getPushHead;
- + (BOOL)canOpenURL:(NSString *)url;
- //保存本地金额显示
- +(void)saveMoneyHidden:(NSString *)isHidden;
- +(NSString *)GetMoneyStatus;
- +(NSString *)backToPassedTimeWithMonthNumber:(NSInteger)number;
- +(void)saveMessage:(NSDictionary *)message;
- +(NSDictionary *)getMessage;
- /// 添加单边阴影效果
- +(void)addShadowToView:(UIView *)theView withColor:(UIColor *)theColor ;
- + (CGSize)sizeWithString:(NSString *)str font:(UIFont *)font maxSize:(CGSize)maxSize;
- @end
|