// // SessionUtilOC.h // LegendTeam // // Created by 梁博 on 20/12/21. // #import #import NS_ASSUME_NONNULL_BEGIN @interface SessionUtilOC : NSObject + (BOOL)shouldReloadWhenInsert:(NSArray *)indexPaths tableView:(UITableView *)tableView; + (NSArray *)getIndexPathsWith:(NSArray *)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