- August 12, 2025
- Mins Read
A simple keyboard to use with numbers and, optionally, a decimal point.
CocoaPods is a dependency manager for Objective-C, which automates and simplifies the process of using 3rd-party libraries like MMNumberKeyboard
in your projects. First, add the following line to your Podfile:
pod ‘MMNumberKeyboard’
Second, install MMNumberKeyboard
into your project:
pod install
Carthage is a dependency manager for Objective-C and Swift. Add the following line to your Cartfile
:
github “matmartinez/MMNumberKeyboard”
The run carthage update
.
Follow the current instructions in Carthage’s README for up to date installation instructions.
There is a sample Xcode project available. Just build & run. And profit.
Basically you instantiate your own keyboard view to use as an .inputView
of your UITextField
, UITextView
or whatever view that supports text editing.
// Create and configure the keyboard.
MMNumberKeyboard *keyboard = [[MMNumberKeyboard alloc] initWithFrame:CGRectZero];
keyboard.allowsDecimalPoint = YES;
keyboard.delegate = self;
// Configure an example UITextField.
UITextField *textField = [[UITextField alloc] initWithFrame:CGRectZero];
textField.inputView = keyboard;
You can adopt the MMNumberKeyboardDelegate
protocol to handle the return key or whether text should be inserted or not.
Recognize your user's voice elegantly without having to figure out authorization and audio engines. SwiftSpeech Examples Features Installation Getting Started ...
Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements iOS 14.0 Installation ...
SlidingRuler is a Swift package containing a SwiftUI control that acts like an linear infinite slider or a finite, more precise ...
SkeletonUI aims to bring an elegant, declarative syntax to skeleton loading animations. Get rid of loading screens or spinners and ...