Files
yuyin_ios/SweetParty/主类/Dynamic/View/SPTrendInsertView.m
2025-08-08 11:05:33 +08:00

39 lines
793 B
Objective-C
Executable File

//
// SPTrendInsertView.m
// SweetParty
//
// Created by bj_szd on 2022/6/6.
//
#import "SPTrendInsertView.h"
@interface SPTrendInsertView () <UITextFieldDelegate>
@end
@implementation SPTrendInsertView
- (void)awakeFromNib {
[super awakeFromNib];
self.insertTF.attributedPlaceholder = [[NSMutableAttributedString alloc] initWithString:@"说点什么吧~" attributes:@{NSForegroundColorAttributeName:HEXCOLORA(0x333333, 1)}];
self.insertTF.delegate = self;
// [self.sendBtn setJianBianWithCGSize:CGSizeMake(80, 40)];
}
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
if (self.onSendBlock) {
self.onSendBlock();
}
return YES;
}
- (IBAction)onSend:(id)sender {
if (self.onSendBlock) {
self.onSendBlock();
}
}
@end