Questions tagged [uipicker]

DO NOT USE. Please use the [tag:UIPickerView] tag

DO NOT USE. Please use the tag for all questions related to showing a spinning-wheel or slot-machine user interface on iOS.

142 questions
1
vote
1 answer

How to make output dependent on UIPicker row selection

I need a single component UIPicker to display different text and perform a different action depending on which row is selected. I am defining the text, so it is not what the picker reads. First, second, and third are all NSStrings. I can't figure…
StreaminJA
  • 53
  • 1
  • 1
  • 9
1
vote
3 answers

how to add uipickerview as as subview to mainview in iphone?

I have one application in which when user clicks a button i want to open uipickerview as as subview to main view and after user selects an item it should be removed from main view.(drop down kind of functionality).For that i have written code as…
nehal
  • 297
  • 2
  • 5
  • 12
1
vote
1 answer

iphone UIPickerView question

Here's the situation, I'm a newb at this - so I could be totally on the wrong path. I am building an app with multiple views; in one of those views I need the user to select from a dropdown list (UIPickerView) --> for simplicity let's call that view…
timw07
  • 339
  • 2
  • 5
  • 18
1
vote
1 answer

uipickerview deselect all items

Is it possible to load an uipickerview with values but by default have no item selected? I tried setting selected item to -1 with no success.
Jorge
  • 2,156
  • 2
  • 22
  • 29
1
vote
0 answers

Picker not animated

I've a problem with XCode. If I make a Picker (DatePicker, PickerView, ...) he isn't animated on my MacBook Pro, but if I launch the project with another Mac it works. I haven't any output in the console and the code works but the Picker is not…
DjLeChuck
  • 308
  • 5
  • 17
1
vote
1 answer

How to Sync selected row of UIPicker with previously entered data

I've got a Picker that comes up as the inputView for UITextField instead of a keyboard. The user dials in their choice, saves and then dismisses the view. When you come back to that view and go to dial in a new choice the picker is out of sync with…
aaronium112
  • 2,992
  • 4
  • 35
  • 50
1
vote
1 answer

How to pass values out of reusable PickerView.xib in swift

I created a reusable UIPickerView: PickerView.swift: class PickerView: UIView, UIPickerViewDelegate, UIPickerViewDataSource { @IBOutlet weak var pickerView: UIPickerView! var labels: [String] = [] { didSet { …
user5154504
1
vote
1 answer

Any way to show a view only once the app is used?

I am creating an app which requires the users to enter certain values when the app is used for the first time. A settings screen with 4 UITextFields and a UIPicker. This settings view can be accessed later using a button from the…
Wizard Of iOS
  • 2,389
  • 2
  • 18
  • 22
1
vote
1 answer

UIPicker - Initial value problem

I have a UIPicker with 3 components containing numeric values, this allows the user to set the time in hh:mm:ss format. If I select the hour from the first component my UITextField looks like this: 10:(null):(null). The (null) can be removed when…
Stephen
  • 4,715
  • 8
  • 53
  • 78
1
vote
1 answer

Setting initial value in the UIPicker

I have a number of UIPickers in my app. I have them setup that when the user taps on a text control, the picker appears and the user can select a value. That value is then displayed in the text field, but I want the text field to be populated with…
Stephen
  • 4,715
  • 8
  • 53
  • 78
1
vote
1 answer

Can't set default value UIPicker swift 2

I have a swift project with a custom cell from a tableview, ans inside it I have a label to display the value of a UIPicker. The UiPicker appear in the keyboard when you press the label, I wan't to be able to set default values to my UIPicker, I…
fandro
  • 4,833
  • 7
  • 41
  • 62
1
vote
2 answers

Popup UIPicker instead of keyboard

I want a UIPicker to popup instead of the keyboard when I click on a text field. Is this possible, I've been googling for awhile but can't find anything. Does anyone have any sample code ? Regards, Stephen
Stephen
  • 4,715
  • 8
  • 53
  • 78
1
vote
1 answer

UIButton and UIPicker

Is there any reason adding a UIPicker to a view might somehow rob a programatically created button of its functionality? I initially instantiated a UIButton to take me to a different view, and all was well and fine. Then I went ahead and added a…
NWilkie
  • 156
  • 8
1
vote
0 answers

Change Color of single, selected Row in UIPickerView

I am developing app in which i am using UIPickerView but now i want to change the color of selected Row text color. How can i do this ? I am using this method - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row…
Vivek Shah
  • 430
  • 5
  • 22
1
vote
1 answer

UIPickerView with UIActionSheet IOS 8 stop working

Showing a UIPickerView with UIActionSheet in iOS8 not showing -(void)showPicker{ /************************ FIXED please contact me on nfsarmento@hotmail.com if you need help to fix******// actionSheet = [[UIActionSheet alloc]…
1 2
3
9 10