• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: UITextField Questions
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UITextField Questions


  • Subject: Re: UITextField Questions
  • From: Brooke Gravitt <email@hidden>
  • Date: Mon, 25 Jul 2011 22:43:40 -0400

On Mon, Jul 25, 2011 at 10:29 PM, Howard Siegel <email@hidden> wrote:
> Brooke,
>
> You would likely be much better off using UIPickerViews, or a UIPickerView
> and a UISlider as Conrad suggests. If the UISlider doesn't give you enough
> selection precision, then use another UIPickerView. You use the UITextField
> to keep the value for display purposes, but use the UIPickerViews for the
> value selection.
>
> In order to use the UITextField for display and the UIPickerView for the
> value
> selection instead of the keypad you would need to create the UIPickerViews
> and then set the UITextField inputView to the appropriate UIPickerView. When
> the user taps in the text field, instead of a keypad coming up, the picker
> view
> will come up. You can also set the inputAccesoryView to a UIToolbar that
> contains a "done" button so the picker view can be dismissed once the
> user selects the value.
>
> The picker view for the percentage would contain 2 or 3 columns for the
> decimal part (0 to 100) and as many columns for the fractional part as
> needed.
>
> The picker view for the price would contain as many columns for the
> dollar amount and 2 columns for the pennies. This assumes that the
> price value isn't too outrageously large that you can't fit the dollar
> amount
> in to columns such that the picker view becomes too wide, and you can
> get pretty wide if you drop the font size used for the columns.
>
> I can dig out some links to StackOverflow threads that I used to code up
> exactly this type of user interface in an app that I am writing.
>
> - h
>
>

Howard,

Thanks - I'm looking into your ( and Conrad's) suggestions. My app's
been off the App Store for a about a year ( I let my dev subscription
lapse ) so I was really trying to resurrect it and fix a few crashers.
I wish I'd have done it this was originally :)  I can't believe it
even got approved with the serious bug in it.

The Xcode banter has been interesting as well - count me as one of the
folks who used ProjectBuilder/IB on NextStep and CodeWarrior & MPW on
the MacOS side. I still generally edit code in Vim, though. My
flamewars have involved those heathens using emacs :)

Thanks again!

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

  • Follow-Ups:
    • Re: UITextField Questions
      • From: Howard Siegel <email@hidden>
References: 
 >UITextField Questions (From: Brooke Gravitt <email@hidden>)
 >Re: UITextField Questions (From: Conrad Shultz <email@hidden>)
 >Re: UITextField Questions (From: Brooke Gravitt <email@hidden>)
 >Re: UITextField Questions (From: Howard Siegel <email@hidden>)

  • Prev by Date: Re: UITextField Questions
  • Next by Date: Re: Does anyone else dislike Xcode 4?
  • Previous by thread: Re: UITextField Questions
  • Next by thread: Re: UITextField Questions
  • Index(es):
    • Date
    • Thread