mirror of
https://github.com/zhigang1992/RETableViewManager.git
synced 2026-06-17 23:25:39 +08:00
Format number field value
This commit is contained in:
@@ -16,9 +16,10 @@ Build and run the `REFormattedNumberFieldExample` project in Xcode to see `REFor
|
||||
|
||||
## Installation
|
||||
|
||||
### via CocoaPods
|
||||
### CocoaPods
|
||||
|
||||
The recommended approach for installating REFormattedNumberField is via the [CocoaPods](http://cocoapods.org/) package manager, as it provides flexible dependency management and dead simple installation.
|
||||
The recommended approach for installating `REFormattedNumberField` is via the [CocoaPods](http://cocoapods.org/) package manager, as it provides flexible dependency management and dead simple installation.
|
||||
For best results, it is recommended that you install via CocoaPods >= **0.15.2** using Git >= **1.8.0** installed via Homebrew.
|
||||
|
||||
Install CocoaPods if not already available:
|
||||
|
||||
@@ -27,12 +28,19 @@ $ [sudo] gem install cocoapods
|
||||
$ pod setup
|
||||
```
|
||||
|
||||
Change to the directory of your Xcode project:
|
||||
|
||||
``` bash
|
||||
$ cd /path/to/MyProject
|
||||
$ touch Podfile
|
||||
$ edit Podfile
|
||||
```
|
||||
|
||||
Edit your Podfile and add REFormattedNumberField:
|
||||
|
||||
``` bash
|
||||
$ edit Podfile
|
||||
platform :ios, '5.0'
|
||||
pod 'REFormattedNumberField', '~> 1.0.2'
|
||||
pod 'REFormattedNumberField', '~> 1.0.3'
|
||||
```
|
||||
|
||||
Install into your Xcode project:
|
||||
@@ -41,7 +49,15 @@ Install into your Xcode project:
|
||||
$ pod install
|
||||
```
|
||||
|
||||
### Simple Install
|
||||
Open your project in Xcode from the .xcworkspace file (not the usual project file)
|
||||
|
||||
``` bash
|
||||
$ open MyProject.xcworkspace
|
||||
```
|
||||
|
||||
Please note that if your installation fails, it may be because you are installing with a version of Git lower than CocoaPods is expecting. Please ensure that you are running Git >= **1.8.0** by executing `git --version`. You can get a full picture of the installation details by executing `pod install --verbose`.
|
||||
|
||||
### Manual Install
|
||||
|
||||
All you need to do is drop `REFormattedNumberField` files into your project, and add `#include "REFormattedNumberField.h"` to the top of classes that will use it.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user