新增删除弹窗,修改bug
This commit is contained in:
@@ -99,8 +99,12 @@
|
||||
|
||||
- (void)sendButtonTapped {
|
||||
NSString *text = self.textField.text;
|
||||
if (text.length > 0 && self.onSend) {
|
||||
self.onSend(text);
|
||||
if (text.length > 0) {
|
||||
if (self.onSend) {
|
||||
self.onSend(text);
|
||||
}
|
||||
// 点击发送后清空输入
|
||||
[self clearText];
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user