I think it would be good to point out that as of iOS 4.1 you can use the new UIKeyboardTypeDecimalPad
.
So now you just have to:
myTextField.keyboardType=UIKeyboardTypeDecimalPad;
More Related Contents:
- Tab bar controller inside a navigation controller, or sharing a navigation root view
- How to programmatically determine iPhone interface orientation?
- NSTimer doesn’t stop
- What are best practices that you use when writing Objective-C and Cocoa? [closed]
- Transforming a rectangle image into a quadrilateral using a CATransform3D
- Open Source Cocoa/Cocoa-Touch POP3/SMTP library?
- Arguments in @selector
- How to disable touch input to all views except the top-most view?
- When does an associated object get released?
- Reading audio samples via AVAssetReader
- Change UINavigationBar Height
- iPhone: Disable the “double-tap spacebar for .” shortcut?
- NSOperation on the iPhone
- Apple gyroscope sample code
- Enabling crash logs symbolication in Xcode 4.2
- How to resize a tableHeaderView of a UITableView?
- How to create a UITableViewCell with a transparent background
- Best radio-button implementation for IOS
- HTTPS with NSURLConnection – NSURLErrorServerCertificateUntrusted
- Sorting NSString values as if NSInteger using NSSortDescriptor
- Bootstrap Server Error in Xcode IPHONE [duplicate]
- How do I auto size a UIScrollView to fit its content
- UITextField for Phone Number
- How is a rounded rect view with transparency done on iphone?
- Deactivate UIScrollView decelerating
- Offset on UIWindow addSubview
- How to get UIMenuController work for a custom view?
- How to handle duplicate symbol error from 3rd party libraries?
- How to tint UIBarButtonItem background color? [duplicate]
- UISwitch in a UITableView cell