mirror of
https://github.com/zhigang1992/ParkedTextField.git
synced 2026-04-24 04:15:28 +08:00
Add Carthage support
This commit is contained in:
11
README.md
11
README.md
@@ -2,6 +2,7 @@
|
||||
[](http://cocoapods.org/pods/ParkedTextField)
|
||||
[](http://cocoapods.org/pods/ParkedTextField)
|
||||
[](http://cocoapods.org/pods/ParkedTextField)
|
||||
[](https://github.com/Carthage/Carthage)
|
||||
|
||||
A text field subclass with a constant text in the end.
|
||||
|
||||
@@ -14,14 +15,20 @@ Main functionality works. It is still under development.
|
||||
|
||||
## Usage
|
||||
|
||||
ParkedTextField is available through [CocoaPods](http://cocoapods.org). To install
|
||||
ParkedTextField is available through [CocoaPods](http://cocoapods.org) and [Carthage](https://github.com/carthage/carthage). To install
|
||||
it, simply add the following lines to your Podfile:
|
||||
|
||||
```ruby
|
||||
use_frameworks!
|
||||
pod "ParkedTextField"
|
||||
```
|
||||
|
||||
|
||||
Or add the following lines to your Cartfile:
|
||||
|
||||
```bash
|
||||
github "gmertk/ParkedTextField" "master"
|
||||
```
|
||||
|
||||
## Setup
|
||||
|
||||
If you want to use storyboards, just drop a TextField into your storyboard and set its class to `ParkedTextField`. Then customize through the attributes inspector or code. Otherwise, you can write the code to initialize with frame and set the properties.
|
||||
|
||||
Reference in New Issue
Block a user