A special field like mobike input bike number field.仿摩拜单车手动输入单车编号控件.
Swift Shell Ruby Objective-C
Switch branches/tags
Nothing to show
Latest commit 97ab342 May 24, 2017 @Jvaeyhcd add HcdSpecialLable
Permalink
Failed to load latest commit information.
Example add HcdSpecialLable May 24, 2017
HcdSpecialField/Classes add HcdSpecialLable May 24, 2017
images add images May 11, 2017
HcdSpecialField.podspec write a demo May 9, 2017
LICENSE 0.0.1 May 9, 2017
README.md update README May 11, 2017
README_ZH.md add README_ZH May 11, 2017

README.md

HcdSpecialField

Version Platform License Tag Author

HcdSpecialField is a special field, it can be used in 3 different scene.

Example

You can use it when you want to input a redeem code to exchange a coupon in your App.

Redeem Code

Also it can be used in your App when you want to design a input passcode viewController like iPhone passcode's viewController.

Passcode

Finally i used it in my App to input a bike number like Mobike's App.

Mobike

Requirements

  • Swift3 or higher
  • Xcode 8 or higher
  • iOS 8.0 or higher

Demo

Build and run the Example/HcdSpecialField.xcworkspace project in Xcode to see HcdSpecialField in action.

Installation

Manual Install

All you need to do is drop HcdSpecialField files into your project.

CocoaPods

The recommended approach for installating HcdSpecialField is via the CocoaPods package manager, as it provides flexible dependency management and dead simple installation. For best results, it is recommended that you install via CocoaPods >= 0.28.0 using Git >= 1.8.0 installed via Homebrew.

Install CocoaPods if not already available:

$ [sudo] gem install cocoapods
$ pod setup

Change to the directory of your Xcode project:

$ cd /path/to/MyProject
$ touch Podfile
$ edit Podfile

Edit your Podfile and add HcdSpecialField:

platform :ios, '8.0'
source 'https://github.com/CocoaPods/Specs.git'

use_frameworks!
target 'MyProject' do
  pod 'HcdSpecialField'

end

Install into your Xcode project:

$ pod install

Open your project in Xcode from the .xcworkspace file (not the usual project file)

$ open MyProject.xcworkspace

Contact

If you have some suggest please post me an issue.

Author

LICENSE

MIT License.