FDTextFieldTableViewCell
Features
- Fully featured like the Right Detail style
- Adds a UITextField to the cell and places it correctly
Usage
Select a cell in your storyboard and use the inspector to change the Custom Class to FDTextFieldTableViewCell.
Switch to the attributes inspector and set the style to Right Detail.
In your UITableViewController subclass, do something like:
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
}
Installation
Installation
CocoaPods
CocoaPods is a dependency manager for Cocoa projects. You can install it with the following command:
$ gem install cocoapodsCocoaPods 0.39.0+ is required to build FDTextFieldTableViewCell 0.1.0+.
To integrate FDTextFieldTableViewCell into your Xcode project using CocoaPods, specify it in your Podfile:
source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!
pod 'FDTextFieldTableViewCell', '~> 0.1'Then, run the following command:
$ pod installCarthage
Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.
You can install Carthage with Homebrew using the following command:
$ brew update
$ brew install carthageTo integrate FDTextFieldTableViewCell into your Xcode project using Carthage, specify it in your Cartfile:
github "fulldecent/FDTextFieldTableViewCell"
Run carthage update to build the framework and drag the built FDTextFieldTableViewCell.framework into your Xcode project.
