Skip to content

A simple extension to UITextField that allows negative numbers to be entered on the decimal keypad.

License

Notifications You must be signed in to change notification settings

jengelsma/DecimalMinusTextField

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DecimalMinusTextField

DecimalMinusTextField is an iOS drop-in class that extends UITextField's decimal keypad with a minus sign (to enter negative decimal numbers) and a Done button (to dismiss the keyboard).

Requirements

DecimalMinusTextField works with iOS7 and above and depends on the following frameworks:

  • Foundation.framework
  • UIKit.framework

Usage

To use DecimalMinusTextField in your project:

  1. Clone the source to your desired local directory.
  2. Open your project in Xcode and drag DecimalMinusTextField into your project.
  3. Instantite DecimalMinusTextFields as desired in your UIViewController code, or if you are using Interface Builder, be sure to set the custom class to DecimalMinusTextField in the Indentity Inspector tab on the right.

License

This code is distributed under the terms and conditions of the MIT license.

About

A simple extension to UITextField that allows negative numbers to be entered on the decimal keypad.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages