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

Preventing direct typing into a UITextField when using an inputView to show a UIPicker on iPhone

I have code working very nicely to show a picker on a UITextField object (in a UITableViewCell) by using the inputView of the UITextField object. This stops the keyboard being shown but does not stop someone directly typing into the field. To be…
2
votes
2 answers

How to change the size of the characters inside a UIPicker

I am trying to center and change the size of the text inside my UIPicker but am not sure how... I think it might happen in one of these methods, most likely the first... - (NSString*)pickerView:(UIPickerView*)pv titleForRow:(NSInteger)row…
C.Johns
  • 10,185
  • 20
  • 102
  • 156
2
votes
0 answers

Removing UIPickerView when button is pressed swift

How can I dismiss a uipickerview view using swift? I have created the UIPickerView in UITableView as I want it to be populated with the elements in the UITableView. Then I have just a UIButton appear on the screen. I want it so that the UIPickerView…
kitchen800
  • 197
  • 1
  • 12
  • 36
2
votes
1 answer

Multiple UIPickerViews

I have a dilemma, I have two UIPickerViews which "show" when two distinct views load. I started with one UIPickerView and was able to get that up and running by loading the array and all the other UIPickerView actions within the ViewController. I…
timw07
  • 339
  • 2
  • 5
  • 18
2
votes
0 answers

Get the UITextfield textFieldDidEndEditing callback in a custom UIPicker class

According to my requirement I need a UIPicker in multiple sections of my app with the same list. So I'm creating a custom class of UIPicker and so far i didn't receive any problem but one thing i would like improve is currently I'm setting the value…
tryKuldeepTanwar
  • 3,490
  • 2
  • 19
  • 49
2
votes
2 answers

How to Scroll to Specific Row in UIPickerView In iOS Swift 3

I have a UIPickerView with values 0...250. There is 2 Components in UIPickerView. In First component i am displaying these values. but i want to detect scrolling method of the UIPickerView. because when pickerView appears the value I would like to…
2
votes
2 answers

UIPickerView - How to make certain rows unselectable and grayed out

I am creating my own UIPickerview for dates as I need only Months and Days and do not want years, so I cannot use UIDatePicker. When different months are selected I cannot seem to replicate the way UIDatepicker gray's out the unavailable days. For…
Norman G
  • 759
  • 8
  • 18
2
votes
3 answers

Handle picker in UIAutomation

I have picker view with only one component, and 5 values in the component. I could get the number of wheels , and values in the component, as below var picker = window.pickers(); UIALogger.logMessage("picker array count: " + picker.length); var…
Senthil
  • 23
  • 4
2
votes
0 answers

Change the font size of UIPickerView from UIWebView

I am writing an iOS app using Xcode, and face a problem. There is an UIWebView to load a webpage. On this webpage, there are some select elements. When user click the select, a data picker will automatically display for user to pick data. However,…
leavewind
  • 21
  • 2
2
votes
1 answer

Getting titleForRow Using UIPicker from NSArray - Swift

I'm trying to return the object from my array using a UIPickerViewDelegate below: var myArr = NSArray() Adding objects to my array self.myArray = NSArray(objects: "Mr", "Mrs", "Miss", "Ms", "Dr", "Master", "Rev", "Fr", "Atty", "Prof",…
Fudgey
  • 3,793
  • 7
  • 32
  • 53
2
votes
4 answers

How to create multiple value select picker in iOS?

Can we create a picker to select multiple values? What are the other options to select multiple values from the list?
Sanchit Paurush
  • 6,114
  • 17
  • 68
  • 107
2
votes
2 answers

Change UIPicker appearance

So I'm facing this problem, the standard UIPicker doesn't look good in my (proto) app and I would really change its appearance. I've already googled it and found this useful link http://aralbalkan.com/2985. Looks good but I'm wondering if there…
Sr.Richie
  • 5,680
  • 5
  • 38
  • 62
1
vote
2 answers

iPhone UIPickerView not playing selection sound

I have a UIPickerView in my app in which the 'tick' sound when moving from one index to the next is not played. I swear it used to play the sound, but recently it has not played. I am using custom labels for each item in the picker, and I tried…
RyanG
  • 4,393
  • 2
  • 39
  • 64
1
vote
1 answer

PhoneGap iOS UIPicker equivalent element: select an option value programmatically

Using PhoneGap, I have a element rendered as a UIPicker that contains 2 options. So far I have failed to programmatically set the 2nd option as the selected one. Here is how the code looks like(Javascript):