GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - zhoupIT/ZPTextView: 自定义textView,可以显示placeholder,可以修改placeholder字体颜色、大小.还可以设置textview的限制字数.

BranchesTags
Open more actions menu

Latest commit

 

History

14 Commits
14 Commits

Folders and files

NameName
Last commit message
Last commit date
ZPTextView
ZPTextView
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
textViewShow.gif
textViewShow.gif
 
 

Repository files navigation

ZPTextView

自定义textView,可以显示placeholder,可以修改placeholder字体颜色、大小.还可以设置textview的限制字数. ###更新:### 添加isAdaptiveHeight属性,可以自适应高度.

##Adding to your project:## Drag and drop to your project 拖拽到你的项目.

##Basic usage:##

ZPTextView *textView = [[ZPTextView alloc] initWithFrame:CGRectMake(0, 50, self.view.frame.size.width, 80)];
textView.placeholder = @"开始新的一天咯(限制10个字符)";
textView.backgroundColor = [UIColor whiteColor];
/** 可以设置是否是自适应 */
textView.isAdaptiveHeight = Yes;
/** 限制字符的回调 */    
[textView addMaxTextLengthWithMaxLength:10 andEvent:^(ZPTextView *text) {
        NSLog(@"限制了字符个数");
}];
/** 开始编辑的回调 */  
[textView addTextViewBeginEvent:^(ZPTextView *text) {
        NSLog(@"开始编辑");
}];
/** 结束编辑的回调 */  
[textView addTextViewEndEvent:^(ZPTextView *text) {
       NSLog(@"结束编辑");
}];
[self.view addSubview:textView];

示例图片

About

自定义textView,可以显示placeholder,可以修改placeholder字体颜色、大小.还可以设置textview的限制字数.

Resources

Readme
Apache-2.0 license
Activity

Stars

6 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.