Latest 0.0.1
Homepage https://github.com/zcLu/ZCTextView
License MIT
Platforms ios 7.0
Authors

UITextView的placeholder,自定义UITextView,可自定义占位符的字体、颜色。

License MIT
Platform info

示例

演示效果

优点

可移植性好、拓展性好

用法

1.pod ‘ZCTextView’, ‘~> 0.0.1’

2.把ZCTextView.h和ZCTextView.m拖入工程

    ZCTextView *textView = [[ZCTextView alloc]initWithFrame:CGRectMake(0, 100, [UIScreen mainScreen].bounds.size.width, 200)];
    textView.placeholder = @"请输入占位文字";

    //textView.placeholderColor = [UIColor greenColor];
    //textView.placeholderFont = 20;

    [self.view addSubview:textView];

说明

觉得有点用的请给个star,觉得需要改进的欢迎提出宝贵意见。

Latest podspec

{
    "name": "ZCTextView",
    "version": "0.0.1",
    "summary": "ZCTextViewu7684placeholder.",
    "description": "UITextView's placeholder",
    "homepage": "https://github.com/zcLu/ZCTextView",
    "license": "MIT",
    "authors": {
        "u201cu9c81u5fd7u8d85u201d": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/zcLu/ZCTextView.git",
        "tag": "0.0.1"
    },
    "source_files": [
        "ZCTextView/ZCTextView",
        "Classes/**/*.{h,m}"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This