This commit is contained in:
Yao
2024-12-20 17:49:45 +08:00
parent 86b0363ce1
commit 654d456c7d
7011 changed files with 1705926 additions and 7 deletions

24
ShenQi/DSTextField.m Normal file
View File

@@ -0,0 +1,24 @@
//
// DSTextField.m
// DSChat
//
// Created by DSKJ on 2022/6/15.
// Copyright © 2022 DS. All rights reserved.
//
#import "DSTextField.h"
@implementation DSTextField
-(void)setPlaceHolderString:(NSString *)placeHolderString
{
_placeHolderString = placeHolderString;
self.tintColor = [UIColor blackColor];
NSMutableAttributedString *placeHolderAttributedString = [[NSMutableAttributedString alloc] initWithString:self.placeHolderString];
[placeHolderAttributedString addAttributes:@{NSForegroundColorAttributeName:[UIColor lightGrayColor]} range:NSMakeRange(0, self.placeHolderString.length)];
self.attributedPlaceholder = placeHolderAttributedString;
}
@end