I am trying to implement a UIpicker with numeric values in a Actionsheet on a text box event. When the user touches the text box, i want the UIpicker to pop up and allow a user to select a value. Do i have to declare the values in a array or is there some other way to do that?
Asked
Active
Viewed 926 times
2 Answers
0
You can do it, you just have to create a UIPickerView inside the ActionSheet.
Here's a good answer for the same question: Add UIPickerView & a Button in Action sheet - How?
Also, you could use the class I wrote, ActionSheetPicker, which creates an ActionSheet with a UIPickerView and calls back with the selected value.
-2
UIActionSheet can only contain a title (optional) and buttons. It cannot display a UIPickerView.

Kris Markel
- 12,142
- 3
- 43
- 40
-
But i have seen a lot of articles on this site where UIPickerView have been implemented in a UIActionSheet. Though none of them actually seem to address the scenario that i mentioned. – spenumatsa Oct 17 '10 at 04:17
-
You can do it by adding a UIPickerView as a subview of an ActionSheet view (see my answer). – TimCinel May 11 '11 at 07:37