Questions tagged [uipickerview]

The UIPickerView class implements objects, called picker views, that use a spinning-wheel or slot-machine metaphor to show one or more sets of values. Appears on iOS.

UIPickerView is part of the UIKit Framework and is available in iOS 2.0 and later. The UIPickerView class implements objects, called picker views, that use a spinning-wheel or slot-machine metaphor to show one or more sets of values.

Picker views can have multiple components, each of which can select independent values.

References:

3356 questions
1
vote
3 answers

Done Button not working at programmatic UIBarButtonItem and UIPickerView

I am creating a UIPickerView, UIToolbar, UIBarButtonItem and UIButton programmatically. I'v set the custom picker as an inputView of a textView and everything works without problem except the Done button. Does anyone have any idea of what the…
John Smith
  • 11
  • 2
1
vote
1 answer

UIPickerView as a Subview

I am trying to create a Dialog Box in which contains a UIPickerView. I can get it to work without the Subview tied around it but I always end up with an Uncaught error. Any help?
Cancel
  • 11
  • 1
1
vote
1 answer

redraw view off screen - contains picker view and tool bar

Im trying to draw/place a view (which contains a picker view and a toolbar offscreen). On launch the View is still on the screen despite changing its coordinates in viewDidLoad. self.pickerViewContainer.frame = CGRectMake(0, 722, 320, 207); Im…
DevC
  • 6,982
  • 9
  • 45
  • 80
1
vote
2 answers

How to create a "Drop-Up-Menu"?

I want to create a drop up menu like this. But I have no clue what it is called, so I can't look for it. And by the way, are there others methods to create such a "more option"-menu? I know there is the UIPickerView, but if i have only 2 or 3…
Gustl007
  • 245
  • 1
  • 2
  • 12
1
vote
1 answer

UIPickerView custom view strange behavior

I have a problem with UIPickerView... I created a UIPickerView with two components with two rows for the first one, and three rows for the second one. I'm trying to create a custom view for each row in each component. Okay, I've subclassed UIView…
Jorge Ramos
  • 891
  • 10
  • 21
1
vote
1 answer

Custom UIPickerView crashes when datasource does not have data

I have a screen with two text fields (category, subcategory), each hooked up to a custom UIPickerView. The options present in the subcategory view depend on the category selected as the value of the first field. If the user has not selected a…
GWhite
  • 426
  • 5
  • 13
1
vote
1 answer

Two pickerview's changing one imageview

I'm developing my first iOS App and I'm stuck, I've searched a lot but I couldn't find any solution. I've a UIPickerView with two components (Picker1 with 5 array objects and Picker2 with 2) and a UIImageView and I need to set a different image…
MADPT
  • 97
  • 2
  • 12
1
vote
0 answers

UIPickerView in cell like 'DateCell'

I have downloaded the sample code for the DateCell. Now I want to do the same with a PickerView, above the UIDatePicker, in another Section. How can I do that? I've tried it before by modifying the code, but without success. Can someone give me an…
iCode
  • 1,456
  • 1
  • 15
  • 26
1
vote
0 answers

UIPickerView iOS7 Touch Row To Select

iOS7 has changed the UIPickerView, it only returns 3 subviews now, and the second subview has some of its own subviews. I've been trying to add a UIGestureRecogniser to each of the subviews to allow the center row to be touch selected, but no…
Josh Pike
  • 51
  • 6
1
vote
1 answer

Creating a smaller UIPickerView for use in table

I'm trying to create a smaller UIPickerView for use in a table and I can't work out how to make the actual control resize correctly. What I'm trying to achieve is something like the following: I am creating my picker in the cellForRowAtIndexPath:…
Anonymouslemming
  • 518
  • 2
  • 9
  • 16
1
vote
1 answer

UIPickerView, cannot get data from array

I'm trying to learn how to use the UIPickerView, and I don't know why my alert view always prints the first element in the array (picker), vs anything else. I have a button press defined for the picker as: - (IBAction)buttonPressed { NSInteger…
Crystal
  • 28,460
  • 62
  • 219
  • 393
1
vote
1 answer

How can I get the index number of the selected row in UIPICKERVIEW (iOS)

I need the index number of the item that I have selected in my pickerview. I am able to get the row value thru objectatindex:row, however I need the index value when I click the done button that I have. Thanks
user2433194
  • 86
  • 2
  • 13
1
vote
1 answer

Simple Q about UIPickerView properties

Ok this is probably so simple that it's laughable, but I can't figure the answer. What is the property of the uipickerview? For the UIDatePicker, its datePicker.date, for label you can do label.text, etc etc. Is there a pickerView.XX syntax where I…
Steve
  • 628
  • 1
  • 10
  • 18
1
vote
4 answers

Crash when scrolling a UIPickerView set up with IB

This is my first time using IB, but after spending a one or two intimate days with it I believe I'm beginning to understand it. That's just my way of saying I might be overlooking something simple here: I've set up a UIPickerView and joined it to…
JoBu1324
  • 7,751
  • 6
  • 44
  • 61
1
vote
2 answers

NSInvalidArgumentException - unrecognized selector sent to instance? UITextView / UIPickerView

I am trying to set up a text field that populates a pickerView with the users input. I am getting this error every time I launch the application: NSInvalidArgumentException', reason: '-[UITextField isEqualToString:]: unrecognized selector sent to…
Jared Gross
  • 649
  • 3
  • 9
  • 23