Latest 1.0.3
Homepage https://github.com/yscode001/YSTextView
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

提供功能:placeHolder,高度随内容而变化

环境

swift4.2、iOS9.0

安装使用

1、导入框架

pod 'YSTextView'

2、导入命名空间

import YSTextView

简单使用

1、placeHolder:

调用对象方法:

func ys_setPlaceHolder(placeHolder: String?, color: UIColor?)

2、高度随内容而变化:

调用对象方法(注意,min要与约束高度相同):

func ys_setHeight(min minValue: CGFloat, max maxValue: CGFloat)

3、高度改变后回调:

调用对象方法:

func ys_heightChanged(then: @escaping(() -> ()))

Latest podspec

{
    "name": "YSTextView",
    "version": "1.0.3",
    "summary": "u63d0u4f9bu529fu80fduff1aplaceHolderuff0cu9ad8u5ea6u968fu5185u5bb9u800cu53d8u5316",
    "homepage": "https://github.com/yscode001/YSTextView",
    "license": "MIT",
    "authors": {
        "ys": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/yscode001/YSTextView.git",
        "tag": "1.0.3"
    },
    "source_files": "YSTextView/YSTextView/YSTextView/*.swift",
    "frameworks": "UIKit"
}

Pin It on Pinterest

Share This