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
13
votes
6 answers

Multiple Row Selection in UIPickerView

I want to select multiple rows in a UIPickerView, so I had the idea to show my data in a table and add this table as subview to the picker. I have tried this but didn't succeed. Any suggestions how to do this?
Ank
  • 514
  • 1
  • 5
  • 19
12
votes
2 answers

Objective C: How to use addTarget:action:forControlEvents: method?

I am trying to update the date and time displayed in a table cell immediately after the UIPicker's data has changed (real time updated). I implemented the following code. My "update" method is not being called despite changing the values in the…
Zhen
  • 12,361
  • 38
  • 122
  • 199
8
votes
2 answers

Custom UIPickerView with three Components each showing label on Selection Indicator

In my app I am trying to make an custom UIPickerView which contains three components(days, hours and minutes). I have already made the custom picker with three components. And Now I am stuck at how I can add the labels to the selection indicator…
Ajay
  • 1,622
  • 20
  • 36
7
votes
8 answers

programmatically stop uipickerview animation on iphone

I have a UIActionSheet containing a picker and a UIToolbar. On the UIToolBar there is a save button. However, some of my users reported pressing the save button before the UIPickerView stops spinning thus only retrieving the initial value (before…
zsniperx
  • 2,732
  • 6
  • 25
  • 32
6
votes
7 answers

How to add UIDatePicker in UIAlertController in iOS8?

I am working on a project which I had already released with iOS-7. But now as the action sheet is making problem so I am now implementing UIAlertController. Following is the code which I am using for showing UIAlertController with…
Sanchit Paurush
  • 6,114
  • 17
  • 68
  • 107
6
votes
1 answer

How to get Custom UIPickerView?

I want to achieve the following functionality in Custom UIPiker as shown in below picture. I want to change the text colour of selected area only like above.
4
votes
3 answers

UIPickerView not displaying

I have a UIPickerView on a UIView. I've implemented its protocol in the .h and delegates in the .m files: In IB, I've connected the above to the picker, which I also have an IBoutlet for. The…
4thSpace
  • 43,672
  • 97
  • 296
  • 475
4
votes
1 answer

Parse.com Query with two dates

A parse object in my database has a date field that i have to use as filter to show the user some results from a specific day. I'm asking the user to choose a day with a UIPickerDate and them i'm creating a query with this constraint: [query…
Diego
  • 366
  • 3
  • 18
3
votes
2 answers

Alternatives for picker in iphone/iOS app?

I am showing a form the user fills in my iPhone app. One of the fields is a set of 2 or 3 dates from which the user has to pick one. Putting a picker, or bringing up a table view just for this takes up too much space, leaving no room for the other…
gigahari
  • 671
  • 1
  • 7
  • 19
3
votes
2 answers

How to get the mins and secs in UIPickerView as in figure?

How can we achieve such type of selected values to be changed with mins and secs in UIPickerView???
DShah
  • 9,768
  • 11
  • 71
  • 127
3
votes
4 answers

UIPicker / UIActionSheet works fine on iPhone but only thin line on iPad

The following Code works fine on iPhone, but not on iPad. Only get a thin line instead of the full view. Have been researching and maybe something with the rect for the picker? All size numbers seem to be reasonable. actionSheet =…
ort11
  • 3,359
  • 4
  • 36
  • 69
3
votes
4 answers

How to resign or hide the keyboard?

I have a pick list to select a day and a text field to show the selected date. It will be like this... If i choose any date, it will be like this.... The cross symbol in text field is acheived by the…
Rajkanth
3
votes
1 answer

Multiple sources for UIPickerView on textfield editing

What i have so far is @synthesize txtCountry,txtState; int flgTextField; - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField { [pickerView reloadAllComponents]; // Make a new view, or do what you want here if(textField ==…
Spire
  • 1,055
  • 2
  • 17
  • 47
2
votes
4 answers

How to change the picker rows based on another picker's selection?

I have two pickers - country and region. I need to populate the region picker based on the row selected in the country picker. I have arrays to populate both the pickers. I need some help to change the rows of region picker based on the country…
2
votes
2 answers

Problems with NSNotificationCenter and UIPickerView

I hope I have better luck with someone helping me on this one: I have a UIPickerView where a user makes a selection and then presses a button. I can gladly obtain the users choice, as shown in my NSLog, and when this is done, I want to send a…
1
2 3
9 10