FDTextFieldTableViewCell 3.0.0

FDTextFieldTableViewCell 3.0.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最后一个发布2019年4月
SPM支持 SPM

William Entriken 维护。



  • William Entriken

FDTextFieldTableViewCell

CI Status Version License Platform Carthage compatible

功能

  • 功能丰富,如右侧详细信息样式
  • 向单元格中添加一个 UITextField 并将其放置正确位置

使用方法

在您的 storyboard 中选择一个单元格,并使用检查器将自定义类改为 FDTextFieldTableViewCell

切换到属性检查器,并将样式设置为右侧详细信息。

在您的 UITableViewController 子类中,可以这样操作

override func tableView(tableView: UITableView, cellForRowAtIndexPath indexPath: NSIndexPath) -> UITableViewCell {
    let cell = self.tableView.dequeueReusableCellWithIdentifier("textField") as! FDTextFieldTableViewCell
    cell.textLabel!.text = "hi"
    cell.textField.text = "editMe"
    return cell
}

安装

安装

CocoaPods

CocoaPods 是 Cocoa 项目的依赖管理器。可以使用以下命令安装它

$ gem install cocoapods

需要 CocoaPods 0.39.0+ 来构建 FDTextFieldTableViewCell 0.1.0+。

要使用 CocoaPods 将 FDTextFieldTableViewCell 集成到你的 Xcode 项目中,请在你的 Podfile 中指定它

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

pod 'FDTextFieldTableViewCell', '~> 0.1'

然后,运行以下命令

$ pod install

Carthage

Carthage 是一个去中心化的依赖管理器,它构建你的依赖并提供二进制框架。

你可以使用以下命令通过 Homebrew 安装 Carthage

$ brew update
$ brew install carthage

要使用 Carthage 将 FDTextFieldTableViewCell 集成到你的 Xcode 项目中,请在你的 Cartfile 中指定它

github "fulldecent/FDTextFieldTableViewCell"

运行 carthage update 构建框架并将构建好的 FDTextFieldTableViewCell.framework 拖到你的 Xcode 项目中