Skip to content

emptyglass123/WDTextPlaceholderView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

WDTextPlaceholderView

带水印的UITextView 自定义UITextView

egzample

WDTextPlaceholderView *text = [[WDTextPlaceholderView alloc] initWithFrame:CGRectMake(20, 120, 300, 200)];
[self.view addSubview:text];
text.backgroundColor = [UIColor whiteColor];
text.placeholder = @"请输入...";
text.placeholderColor = [UIColor lightGrayColor];
text.indentOfY = 7.0;        // 垂直缩进
text.indentOfX = 7.0;       // 水平缩进
text.openPlaceHolder = YES; // 打开水印 默认 YES
text.openRoundView = YES;   // 打开圆角 默认 NO

About

带水印的UITextView 自定义UITextView

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published