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

Choose objects inside UITableView chosen by UIPickerView

This is a very broad question, not a specific question about a single problem. If you don't want to help with one of these, here is your warning! I have a View with a pickerWheel. On this picker, I want to have a list of Cargo ship owners. When I…
Oscar Apeland
  • 6,422
  • 7
  • 44
  • 92
1
vote
2 answers

Small Size-issue on UiPicker with in an Alert View (issue with height of the Alert View)

In my app I need to have a Date Picker on UIAlert view I implemented this by following Date Picker in Alert View But while I'm using this date picker in alert view there is some height issues in alert view I tried to set the frame for the alert view…
user1811427
  • 359
  • 2
  • 6
  • 17
1
vote
0 answers

UIPickerView slot machine effect by slowing down and staggering the spinner animation

I'd like to slow down the animation speed of the pickerview to simulate a slot machine effect. How do I slow the animation speed of [pickerView selectRow:601 inComponent:0 animated:YES]; Also, how can I stagger the animations so that component 1…
MonkeyBonkey
  • 46,433
  • 78
  • 254
  • 460
1
vote
3 answers

Hide keyboard when editing another textfield

I have 4 textfields, when editing 3 of them I want the standard keyboard which works fine, but on the 4th textfield i want to display a picker wheel instead. My code works fine when pressing on the 4th textfield directly, but if I edit textfield 1-3…
1
vote
0 answers

How to imitate apple's stock timer app's UIPickerView?

I want my components to wrap around the wheel, not allow a value of zero (across all components), and display units statically in each component. Basically the functionality of the minutes component in the UPickerView of the Timer in the Clock app…
user990769
  • 115
  • 2
  • 12
1
vote
3 answers

How to dismiss a UIPicker that is connected to a UITextField

I have a UITextField, and when pushed a UIPickerView comes up to choose a value. How do I get the UIPickerView to dismiss once a value is chosen. Someone in another thread told me to resignFirstResponder the textfield, but my code isn't working. Any…
user1681673
  • 368
  • 1
  • 6
  • 28
1
vote
2 answers

Inherited value from other control

I am new in programming.I have an basic doubt of inheritance.I have a UITableView in ViewController and when I select first row of Tableview.It take me to the Picker page in which only I have to select value from UIPickerViewthats fine now I have to…
Christien
  • 1,213
  • 4
  • 18
  • 32
1
vote
0 answers

Core Data and UIPickerView - Default Value

I am working on an iPhone/iPad App that is using core data. I have a Table (Entity) that wants the user to select from another Table (relationship is setup in the model). I have worked through several tutorials, and it is working very well. Select…
1
vote
1 answer

UIPickerView Cascade-like Selection

Is it possible to dynamically filter the selection from one side with the other? For example | car types | color | | Toyota | Blue, Yellow | | Ford | Green, Orange, Purple | | Ferrari | Red, Green, Yellow | So when the UIPickerview is…
fes
  • 2,465
  • 11
  • 40
  • 56
1
vote
1 answer

Set UITextField's text as default value in UIPickerView in iPhone.?

I have some text in textField on view load.I want that particular text to be set as default value of UIPickerView ..The value in textField is one of the value of UIPickerView..How can I make it possible.For the code I m writing now is always first…
Honey
  • 2,840
  • 11
  • 37
  • 71
1
vote
2 answers

UIPickerview in iPhone?

I m new to objective-C and I need to create a UIPickerView when a particular textfield is touched that would be populated with the items of NSMutableArray..I have implemented this code but couldnot see the pickerView addded up.I can still see the…
Honey
  • 2,840
  • 11
  • 37
  • 71
1
vote
2 answers

iOS didSelectRow not called on selection a row?

I know its very basic question, but i'm facing a strange behaviour with UIPickerView. Here is my scanario - I'm using UIPickerView in my app. my problem is that when i click on a row didSelectRow method is not called, however when i scroll rows of…
Blios
  • 719
  • 1
  • 16
  • 30
1
vote
2 answers

iPhone UITextField inputView error: Assignement to readonly property

I am having issues when I want to assign UIPicker as inputView of UITextField. It shows error " Assignement to readonly property". Please help as I think it is not related to property sythesizing. I have added my code below: @interface…
user1288005
  • 890
  • 2
  • 16
  • 36
1
vote
3 answers

Getting null Value if I dismiss UIPickerview's Actionsheet with done button while picker spinning

I have a UIActionSheet containing a picker and a UIToolbar. On the UIToolBar there is a done button. However, when I spin Picker component and before it stops spinning, if I tap Done button then I'm not getting any value in my UITextfield. If I tap…
Nitin Gohel
  • 49,482
  • 17
  • 105
  • 144
1
vote
2 answers

Sorting an array by alphabetical order before it is selected by UIPickerView

I am new to iphone development and need some guidance to do custom sorting of an array in iOS. I would like to sort the objects that appear in the UIPickerView. The objects that are passed to the UIPickerView are in an array. When I print the array…
lakshmen
  • 28,346
  • 66
  • 178
  • 276