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
0
votes
1 answer

iphone UIpicker with 2 components scrolling both at the same time

I would like to create a UIPicker with 2 components, there will be numbers in both of them. The number selected in the first, left picker must be lower (or equal) than the number selected in the second one. I want these two components to be…
rdanee
  • 109
  • 1
  • 1
  • 9
0
votes
1 answer

Pickerview select row and didSelectRowAt functions

I am using picker view as a dropdown menu according to user's choice one of my text field needs to be disabled. I have added my delegate and in my didSelectRowAt function there is textField.isEnabled = false but when I tried to select row…
atalayasa
  • 3,310
  • 25
  • 42
0
votes
1 answer

Hide UIPicker after Selection

I have a UIPicker and I want to save selection and hide it after selection. I can't find a way to do this. Can I do this without a "Save" button? Can I just save the selection pressing on the row? Currently I press a button to make the picker…
Maruta
  • 1,063
  • 11
  • 24
0
votes
1 answer

How to change content of UIPicker without creating a new one?

I am a complete newbie in Swift, so excuse me if it may be a dumb question. I am trying to implement a way so that the content in the picker changes depending on which button is clicked. For example, let say there are two buttons "Months" and…
Lowan
  • 277
  • 3
  • 9
0
votes
2 answers

Swift/Xcode - AKPickerView/UIPickerView - fatal error: Index out of range

I have ran into a problem. I am using AKPickerView which is just a cocoapod that works exactly like a UIPickerView. The error I get is: fatal error: Index out of range On this particular line: let titleForModel = carModels[item] This is what I have…
SwiftLearner
  • 144
  • 13
0
votes
1 answer

UIPicker With View + View Tapped != Selected Row

Hey! I have a UIPicker, and I am using the function: - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { But, when you tap one of the views returned by…
Hank Brekke
  • 2,024
  • 2
  • 24
  • 33
0
votes
1 answer

Two UI pickers in the same view controller Objective C?

So ive got my UI picker but it is displaying the same data for each of the UI pickers but i would like it to display the moustache array in one ui picker and the colour one in the other. Currently shown in the image it is assigning the same data to…
Brad
  • 159
  • 11
0
votes
2 answers

Different UIPickerView Delegate/DataSource in UIAlertController

Please tell me how make two different UIPickerView with different delegate/datasource? I have TableView with two cells, and i need open two different UIAlertController with UIPickerView. My code: private weak var filterController: UIAlertController!…
0
votes
1 answer

How do I remove the opacity from UIPickerView on the unselected rows

I'm trying to remove the opacity from the pickerview as part of my slot machine project. I'm trying to make the rows on the pickerview to have the same look like the selected row. I looked all over but could not find something about that. I tried…
Peter
  • 45
  • 2
  • 10
0
votes
1 answer

UIPickerView not registering the correct last row. Swift 2.0

I have a 2 UIPickerView's, one called dayPicker where you have an option between 1-12 and durationPicker where you have the options of days, weeks, months and years. The code for this is below: class AddNewViewController: UIViewController,…
Jess Murray
  • 1,273
  • 1
  • 10
  • 32
0
votes
2 answers

Swift - View controller with several UIPickers.

I'm using swift 2.0 (I'm also new to Swift, and iOS development) ... I'd like to have a view controller that has two UIPickers. Can anyone advise how this can be done? My View controller class ... import UIKit class CreateSessionViewController :…
japes Sophey
  • 487
  • 3
  • 8
  • 26
0
votes
1 answer

Two pickers in a view -iphone app

I am using two UIPickers in a view. first picker has 3 components and second has one. but when I select items, it shows correct items from first picker but always return first item from second picker regardless of selected row. Please help. here is…
ashp
  • 15
  • 3
0
votes
1 answer

Can my UIPickerview output be different that the input?

I have a picker view that will eventually have 4 values. Is there a way to keep the items in the picker view, but have it output a different value to the label? Like can the picker view display "4" but output to the label "8" for example? Heres my…
0
votes
0 answers

UIPickerView issue -- selected row disappears

I am facing weird problem with the UIPickerView. I have implemented UIPickerView in my project and when i scroll quickly to select value from it, the selected row disappears. Please have a look at the attached image. Not only single picker all…
Satish
  • 1,012
  • 2
  • 15
  • 32
0
votes
1 answer

table to updated after selection with uipicker

An UIPicker shows up when I select a row in a table, so I can choose some things I want to be displayed on the same row. How can I update the table once I finished with the uipicker? I used reloadData right after the call to the picker, but the code…
Guille10k
  • 11
  • 2