What is the most suitable way to handle the product quantity for a catalog ordering iPad app. I am currently struggling trying to set up this values with UITextField
s in UITableViewCell
s. The app displays the products in an alphabetical way depending on the first letter for the product. I have it set up using a SegmentedControl
inside a UINavigationBar
which refreshes the cells depending on the alphabet letter tapped, displaying only the products for that letter which is not the same across the board.
I posted a question yesterday to set up UITextFields for which using the UITextFieldDelegate
was the answer I was more inclined to use. The problem that I still face with that option is that when I enter a number for the textField
, it for some reason displays it on other cells. When I scroll up and down the list it keeps populating random cells with that value, and in some cases, removing the value from the cell that should actually have it.
Today, I am growing desperate and am trying to find options to handle those quantities. Probably using a UIPickerView
, or some other type. Has anyone worked on something like an ordering catalog? Any shared info on how to approach this is more than greatly appreciated.
I got it to work perfectly using a mutable dictionary to store the values using the shouldReturn method for the UITextFieldDelegate. From there, I would simply make it display the matching value from the dictionary to the productCode.