On Mon, Jul 25, 2011 at 10:29 PM, Howard Siegel <hsie...@gmail.com> 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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com