Latest 1.0.0
Homepage https://github.com/wyhazq/UILabel-YHPlaceholder
License MIT
Platforms ios 6.0, requires ARC
Frameworks Foundation, UIKit
Authors

A missing placeholder for UILabel.

Installation

Use CocoaPods.

pod 'UILabel+YHPlaceholder'

Usage

#import "UILabel+YHPlaceholder.h"

Then create UILabel and set placeholder.

  • Implement Objective-C:
UILabel *label = [[UILabel alloc] init];
label.placeholder = @"How are you?";
label.placeholderColor = UIColor.lightGrayColor; // optional
label.attributedPlaceholder = ... // NSAttributedString (optional)
  • Storyboard:

Alt text

License

UILabel+YHPlaceholder is under MIT license. See the LICENSE file for more information.

Latest podspec

{
    "name": "UILabel+YHPlaceholder",
    "version": "1.0.0",
    "summary": "A missing placeholder for UILabel.",
    "homepage": "https://github.com/wyhazq/UILabel-YHPlaceholder",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "devxoul": "[email protected]"
    },
    "source": {
        "git": "https://github.com/wyhazq/UILabel-YHPlaceholder.git",
        "tag": "1.0.0"
    },
    "platforms": {
        "ios": "6.0"
    },
    "requires_arc": true,
    "source_files": "UILabel+YHPlaceholder",
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This