HcdSpecialField is a special field, it can be used in 3 different scene.
You can use it when you want to input a redeem code to exchange a coupon in your App.
Also it can be used in your App when you want to design a input passcode viewController like iPhone passcode's viewController.
Finally i used it in my App to input a bike number like Mobike's App.
- Swift3 or higher
- Xcode 8 or higher
- iOS 8.0 or higher
Build and run the Example/HcdSpecialField.xcworkspace project in Xcode to see HcdSpecialField in action.
All you need to do is drop
HcdSpecialField files into your project.
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
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
If you have some suggest please post me an issue.
- Huang ChengDa - Jvaeyhcd