Visual_Novel_iOS/crush/Crush/Src/Modules/Chat/Util/SessionUtilOC.h

29 lines
953 B
Objective-C
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// SessionUtilOC.h
// LegendTeam
//
// Created by 梁博 on 20/12/21.
//
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
@interface SessionUtilOC : NSObject
+ (BOOL)shouldReloadWhenInsert:(NSArray<NSIndexPath *> *)indexPaths tableView:(UITableView *)tableView;
+ (NSArray<NSIndexPath *> *)getIndexPathsWith:(NSArray <NSNumber *>*)indexs;
+ (CGSize)sizeWithImageOriginSize:(CGSize)originSize
minSize:(CGSize)imageMinSize
maxSize:(CGSize)imageMaxSiz;
/// 时间显示规则
/// @param msglastTime 时间戳
/// @param showDetail 是否显示更详细的年月日 ---- 为NO"今天3:16 PM、昨天Yesterday、超过2天Jun 16, 2021" ----- 为YES"今天3:16 PM、昨天Yesterday 3:16 PM、超过2天Jun 16, 2021 3:16 PM"
+ (NSString*)showTime:(NSTimeInterval)msglastTime showDetail:(BOOL)showDetail;
@end
NS_ASSUME_NONNULL_END