修改动画

This commit is contained in:
2026-01-28 17:21:19 +08:00
parent b4db79eba8
commit 1b9ce1622d
5 changed files with 71 additions and 16 deletions

View File

@@ -24,7 +24,7 @@ static const NSTimeInterval kTimestampInterval = 5 * 60; // 5 分钟
@interface KBChatTableView () <UITableViewDataSource, UITableViewDelegate, KBChatAssistantMessageCellDelegate, AVAudioPlayerDelegate>
@property (nonatomic, strong) UITableView *tableView;
@property (nonatomic, strong) BaseTableView *tableView;
@property (nonatomic, strong) NSMutableArray<KBAiChatMessage *> *messages;
@property (nonatomic, strong) AVAudioPlayer *audioPlayer;
@property (nonatomic, strong) NSIndexPath *playingCellIndexPath;
@@ -58,8 +58,9 @@ static const NSTimeInterval kTimestampInterval = 5 * 60; // 5 分钟
self.hasMoreData = YES;
// TableView
self.tableView = [[UITableView alloc] initWithFrame:self.bounds
self.tableView = [[BaseTableView alloc] initWithFrame:self.bounds
style:UITableViewStylePlain];
self.tableView.useEmptyDataSet = false;
self.tableView.dataSource = self;
self.tableView.delegate = self;
self.tableView.separatorStyle = UITableViewCellSeparatorStyleNone;

View File

@@ -7,12 +7,14 @@
#import <UIKit/UIKit.h>
#import "KBPersonaModel.h"
#import "KBChatTableView.h"
NS_ASSUME_NONNULL_BEGIN
/// 人设聊天 Cell
@interface KBPersonaChatCell : UICollectionViewCell
/// 聊天列表
@property (nonatomic, strong) KBChatTableView *chatView;
/// 人设数据
@property (nonatomic, strong) KBPersonaModel *persona;

View File

@@ -6,7 +6,6 @@
//
#import "KBPersonaChatCell.h"
#import "KBChatTableView.h"
#import "KBAiChatMessage.h"
#import "KBChatHistoryPageModel.h"
#import "AiVM.h"
@@ -30,8 +29,7 @@
///
@property (nonatomic, strong) UILabel *openingLabel;
///
@property (nonatomic, strong) KBChatTableView *chatView;
///
@property (nonatomic, strong) NSMutableArray<KBAiChatMessage *> *messages;

View File

@@ -86,11 +86,11 @@
//
[self addSubview:self.inputContainer];
[self.inputContainer mas_makeConstraints:^(MASConstraintMaker *make) {
make.top.equalTo(self.statusLabel.mas_bottom).offset(12);
// make.top.equalTo(self.statusLabel.mas_bottom).offset(12);
make.left.equalTo(self).offset(20);
make.right.equalTo(self).offset(-20);
make.height.mas_equalTo(50);
make.bottom.lessThanOrEqualTo(self).offset(-16);
make.bottom.lessThanOrEqualTo(self).offset(-10);
}];
UILongPressGestureRecognizer *longPress =