UIPOSTView 1.0.2

UIPOSTView 1.0.2

League2eb 维护。




UIPOSTView

Swift 5 Core Version Platform

索引

预览

drawing

示例

导入头文件

import UIPOSTView

初始化

//init
let postViewController = UIPOSTViewController()
postViewController.delegate = self

//config
let style = UIPOSTStyle()
style.maxInputCount = 100
postViewController.postViewStyle = style

样式配置参数

/// 背景顏色
public var backgroundColor: UIColor

/// 標題顏色
public var titleLabelColor: UIColor

/// 內容文字顏色
public var contentTextColor: UIColor

/// 上方Bar顏色
public var topBarColor: UIColor

/// 取消按鈕圖片
public var cancelImage: UIImage

/// 送出按鈕圖片
public var sendImage: UIImage

/// 限制文字顏色
public var limitLabelColor: UIColor

/// 最大限制文字數量
public var maxInputCount: Int

/// 標題文字
public var titleText: String

代理方法

extension ViewController: UIPOSTViewControllerDelegate {
    func onCanceled() {
        NSLog("已經取消")
    }
    func onSended(string: String) {
        NSLog("已經傳送")
    }
}

安装

pod 'UIPOSTView'

需求

  • iOS 10以上

作者

League2EB, [email protected]

许可证

UIPOSTView遵循MIT许可协议。更多信息请参阅LICENSE文件。