29 lines
953 B
Objective-C
Executable File
29 lines
953 B
Objective-C
Executable File
//
|
||
// 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
|