|
@@ -69,8 +69,12 @@ static const NSInteger btnTag = 20000;
|
|
if (!_rightSendBtn) {
|
|
if (!_rightSendBtn) {
|
|
_rightSendBtn = [UIButton buttonWithType:UIButtonTypeCustom];
|
|
_rightSendBtn = [UIButton buttonWithType:UIButtonTypeCustom];
|
|
_rightSendBtn.titleLabel.font = [UIFont systemFontOfSize:16];
|
|
_rightSendBtn.titleLabel.font = [UIFont systemFontOfSize:16];
|
|
- [_rightSendBtn setTitleColor:SL333Color forState:UIControlStateNormal];
|
|
|
|
|
|
+ [_rightSendBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
|
|
[_rightSendBtn setTitle:@"评论" forState:UIControlStateNormal];
|
|
[_rightSendBtn setTitle:@"评论" forState:UIControlStateNormal];
|
|
|
|
+ _rightSendBtn.clipsToBounds = YES;
|
|
|
|
+ _rightSendBtn.layer.cornerRadius = 8.0;
|
|
|
|
+ [_rightSendBtn setBackgroundImage:ImageName(@"icon_btn_blue") forState:UIControlStateNormal];
|
|
|
|
+ [_rightSendBtn setBackgroundImage:ImageName(@"icon_btn_blue_sel") forState:UIControlStateHighlighted];
|
|
[_rightSendBtn addTarget:self action:@selector(btnClick:) forControlEvents:UIControlEventTouchUpInside];
|
|
[_rightSendBtn addTarget:self action:@selector(btnClick:) forControlEvents:UIControlEventTouchUpInside];
|
|
_rightSendBtn.tag = btnTag + 2;
|
|
_rightSendBtn.tag = btnTag + 2;
|
|
[self.textBgView addSubview:_rightSendBtn];
|
|
[self.textBgView addSubview:_rightSendBtn];
|
|
@@ -85,6 +89,7 @@ static const NSInteger btnTag = 20000;
|
|
_nextGrowingTextView.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:1];
|
|
_nextGrowingTextView.backgroundColor = [[UIColor whiteColor] colorWithAlphaComponent:1];
|
|
_nextGrowingTextView.placeholderAttributedText = [[NSAttributedString alloc] initWithString:@"请输入关键词" attributes:@{NSFontAttributeName: [UIFont fontWithName:@"PingFang SC" size: 16], NSForegroundColorAttributeName : [UIColor whiteColor]}];
|
|
_nextGrowingTextView.placeholderAttributedText = [[NSAttributedString alloc] initWithString:@"请输入关键词" attributes:@{NSFontAttributeName: [UIFont fontWithName:@"PingFang SC" size: 16], NSForegroundColorAttributeName : [UIColor whiteColor]}];
|
|
_nextGrowingTextView.layer.cornerRadius = 4.0;
|
|
_nextGrowingTextView.layer.cornerRadius = 4.0;
|
|
|
|
+ _nextGrowingTextView.textView.keyboardType = UIKeyboardTypeASCIICapable;
|
|
_nextGrowingTextView.maxNumberOfLines = 6;
|
|
_nextGrowingTextView.maxNumberOfLines = 6;
|
|
[self.textBgView addSubview:_nextGrowingTextView];
|
|
[self.textBgView addSubview:_nextGrowingTextView];
|
|
}
|
|
}
|