修改动画
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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 =
|
||||
|
||||
Reference in New Issue
Block a user