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
2 answers

Setting the title of current column in UITextField from UIPickerView?

I have a UIPickerView that is being automatically loaded in loaded when a user touches the UITextField, at the end of selection the user can close the UIPicker by touching the "close" that I have added in the inputAccessoryView = toolbar;. My…
vzm
  • 2,440
  • 6
  • 28
  • 47
1
vote
1 answer

Dismissing the UIPicker after user is done using it in a UITextField?

I have a UIPicker that would like to be shown only when a user selects a specific UITextfield. The problem I am having is this: I have added a working picker called myPicker and a text field called field. I have looked at several questions asking…
vzm
  • 2,440
  • 6
  • 28
  • 47
1
vote
3 answers

How to set selection indicator on passing object Index in picker View

I have 3 buttons on one View of UIViewController. On each button click event i called same picker view with different object values. how to set the selection indicator on last object index for particular button.?
Wise
  • 49
  • 1
  • 5
1
vote
2 answers

get the selected item from second view

I have two views, each with its own view controller. The first view has two buttons ("Button" and "Button2"). When I click on "Button", I load the second view controller, which contains a UIPickerView, which hovers over of first view (by performing…
BERGUIGA Mohamed Amine
  • 6,094
  • 3
  • 40
  • 38
1
vote
1 answer

Wrap UIPickerView?

Is there a way to wrap the fields in a UIPickerView so it more closely resembles what it is simulating. Once I get to the last value I want to see the first value below it. This UIPickerView would be able to scroll down forever, continuously…
Lumpy
  • 3,632
  • 4
  • 34
  • 58
1
vote
5 answers

How to deleselect a row from UIPickerview

Hi I am using picker view, by default it is selecting the first row. I don't want this option. For example I am having "No" and "yes" options.If i give this option in pickerview "No " will be selected in pickerview (attached screenshot).I dont need…
Graham Bell
  • 1,139
  • 1
  • 14
  • 30
1
vote
2 answers

Implementing Custom time UIPickerView Popup issue IOS

Edit: forgot to assign delegate, works now. self.timePickerView.delegate = self; self.timePickerView.dataSource = self; Ok so I had this working with a UIDatePicker and it worked fine, however I wanted to include seconds and so had to…
Narsil
  • 57
  • 6
1
vote
1 answer

-[PickerViewController superview]: unrecognized selector sent to instance & TableView ->ViewController w/ Picker View

I am a novice ios programmer having some trouble push segueing from a custom UITableViewController scene to a custom UIViewController scene which contains a Picker View and implements the @required pickerview delegate/datasource methods. [I had a…
OneManBand
  • 528
  • 5
  • 24
1
vote
1 answer

UIPickerView depending on UITableView

I don't have much experience in programming, so here is my question: I'm trying to write a converter app. At the end, you can enter a number. Then I have a two component UIPickerView. With the first component, you select the input format (e.x.…
1
vote
1 answer

Protect class from UIAppearance

I have a UIPickerView in a view inside a subclass of UINavigationController. I have a UIAppearance proxy that I want to apply to many views contained in the UINavigationController subclass, but I don't want the UIAppearance to operate on the…
gary_z
  • 55
  • 1
  • 8
1
vote
1 answer

Show MapView Annotations for Selected Radius

I have a map view with several annotations on it. I have a settings button on my navigation bar that takes the user to a picker view that lets them show all the annotations or select a radius of 5, 10, 25, 50, or 100 miles from their current…
raginggoat
  • 3,570
  • 10
  • 48
  • 108
1
vote
2 answers

display pickerview along with action sheet

I have a textfield. once I tap on that I want a UIPickerView to pop out and select an item from the UIPickerView and after once I am done with the selection I want to confirm the selection by tapping on an UIActionSheet which has confirm button on…
Francis S
  • 183
  • 3
  • 12
1
vote
2 answers

Dependant uipicker view

I have several UIPickerView's on the same view. When I select one item in the first UIPickerView, I want to load data to the other UIPickerView's depending on the selected item. Example: When I select France as a country, I should get cities on the…
M Merou
  • 13
  • 2
1
vote
2 answers

How do I call the delegate of the pickerview when viewDidAppear?

I need the last selected row in my pickerview to be totally recalled when the view appears! I have this code in my viewDidAppear it animates to the last selected row but it doesn't really call the delegate and the NSLog in my rows won't print…
user1949873
  • 460
  • 7
  • 17
1
vote
3 answers

Why isn't the UIPickerView widthForComponent delegate method called everytime the view appears?

I've got two controls on an iPhone screen - a TableView and a UIPickerView. When you select the single cell in the TableView you're taken to another screen where you're show a list of clothing types. Selecting a single clothing item from the list…
billmaya
  • 1,311
  • 3
  • 15
  • 34