Re: UITextField Questions
Re: UITextField Questions
- Subject: Re: UITextField Questions
- From: Brooke Gravitt <email@hidden>
- Date: Mon, 25 Jul 2011 21:31:34 -0400
On Mon, Jul 25, 2011 at 9:19 PM, Conrad Shultz
<email@hidden> wrote:
> Take a look at UITextInputTraits to specify a numeric keyboard. (IIRC this can be done in IB too.)
>
> Take a look at UITextFieldDelegate's textFieldShouldEndEditing: method to perform validation of input.
>
> I should also point out that often a text field is not the most appropriate control for restricted numeric input. If you have a reasonably small finite set of input values, consider UIPickerView. If you have a finite range for input, consider UISlider.
>
> (Sent from my iPhone.)
>
> --
> Conrad Shultz
Conrad,
Thanks for the response! The fields in question are for setting a
price and a percentage, respectively. They don't seem to fit into
either category. I'll take a look at the UITextInputTraits && the
delegate's textFieldShouldEndEditing method as well!
Thanks!
Brooke
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden