123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143 |
- #import <Foundation/Foundation.h>
- #import <UIKit/UIKit.h>
- #define WIDTH_SCALE [UIScreen mainScreen].bounds.size.width / 375
- #define HEIGHT_SCALE [UIScreen mainScreen].bounds.size.height / 667
- #define kIsHaveBang [ZYCTool isHaveBang]//判断是否是刘海屏系列
- #define Height_SCALE(a) a*HEIGHT_SCALE
- #define Width_SCALE(a) a*WIDTH_SCALE
- @interface ZYCTool : NSObject
- typedef void (^NotAvailable)(void);
- typedef void (^Available)(void);
- typedef void (^returnCancel)(void);
- typedef void (^returnNotarize)(void);
- typedef void (^returnNotarizeWithIdx)(NSInteger idx);
- @property (strong, nonatomic) UIAlertController *alertController;
- @property (copy, nonatomic) returnNotarize returnNotarize;
- @property (copy, nonatomic) returnCancel returnCancel;
- @property (copy, nonatomic) returnNotarizeWithIdx returnNotarizeWithIdx;
- + (void)alertControllerTwoButtonWithTitle:(NSString *)title message:(NSString *)message target:(UIViewController *)viewController notarizeButtonTitle:(NSString *)notarizeButtonTitle cancelButtonTitle:(NSString *)cancelButtonTitle notarizeAction:(returnNotarize)notarize cancelAction:(returnCancel)cancel;
- + (void)alertControllerOneButtonWithTitle:(NSString *)title message:(NSString *)message target:(UIViewController *)viewController defaultButtonTitle:(NSString *)defaultButtonTitle defaultAction:(returnNotarize)defaultAction;
- + (void)controller:(UIViewController *)viewController CameraIsAvailable:(Available)Available OrNotAvailable:(NotAvailable)NotAvailable;
- + (void)controller:(UIViewController *)viewController AlbumIsAvailable:(Available)Available OrNotAvailable:(NotAvailable)NotAvailable;
- + (void)countDownWithTime:(NSInteger)countTime AndCounting:(void(^)(NSInteger count))counting AndFinished:(void(^)(void))finished;
- + (void)actionSheetWithTitleArray:(NSMutableArray *)titleArray target:(UIViewController *)viewController notarizeAction:(returnNotarizeWithIdx)returnNotarizeWithIdx;
- + (BOOL)isHaveBang;
- +(void)setLabelSpace:(UILabel*)label withSpace:(CGFloat)space withFont:(UIFont*)font;
- +(void)setLabelFirstLineHeadIndent:(UILabel*)label withSpace:(CGFloat)space withFont:(UIFont*)font setTing:(NSUInteger)headIndent;
- +(void)setLabel:(UILabel*)label withSpace:(CGFloat)space withFont:(UIFont*)font setLineSpace:(NSUInteger)headIndent setTextSpace:(CGFloat)textspace;
- + (NSString *)handerResultData:(NSError *)error;
- + (BOOL)isNullToDictionary:(NSDictionary *)dict;
- + (NSString *)monthAndDayAndHoursAndMinutes:(NSString *)dateString;
- + (NSString *)yearMonthAndDay:(NSString *)dateString;
- + (NSString *)yearMonthAndDayHourMinuesSecond:(NSString *)dateString;
- + (NSString *)getCommenttext:(NSInteger)number;
- + (NSMutableArray *)setToArray:(NSMutableSet *)set;
- + (NSString *)getYearAndMonthAndDay;
- + (NSString *)MonthAndDay:(NSString *)dateString;
- + (NSDate *)StringReturnDate:(NSString *)dateString;
- + (NSMutableAttributedString *)checkOfString:(NSString *)infoStr KeyString:(NSString *)keyString;
- + (NSMutableAttributedString *)checkOfString:(NSString *)infoStr withSearchText:(NSString *)text;
- + (NSMutableAttributedString *)checkOfString:(NSString *)infoStr withSearchText:(NSString *)text withColor:(UIColor *)color;
- + (NSMutableAttributedString *)checkOfString:(NSString *)infoStr withSearchText:(NSString *)text bgtextColor:(UIColor *)bgColor foreTextColor:(UIColor *)foreColor font:(UIFont *)font;
- + (NSString *)getFileNameImage:(NSString *)fileName;
- + (CollectDataType)returnDataType:(CollectModelType)type;
- @end
|