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

Use initWithObjects on data from Array of Objects

Lets say I have a number of objects: @interface City : NSObject { NSString *name; NSString *country; int yearFirstTimeVisited; } Which are stored in an Array of objects: city = [[City alloc]…
Vincent
  • 4,342
  • 1
  • 38
  • 37
1
vote
0 answers

How to emulate the inputView behavior with a subView?

I have a tableView with prototype cells. It loads the cell data based on a chosen date. I want to have a button (UIBarButton or UIButton) that displays a datePicker with the same behavior as an inputView from a UITextField (e.g the birthday…
JSeven
  • 625
  • 1
  • 6
  • 12
1
vote
2 answers

Selecting Multiple Elements In A UIPickerView

I found this code online and am surprised that it basically does the opposite of what I want it to do. Here are the methods... - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component…
The Man
  • 1,462
  • 3
  • 23
  • 45
0
votes
1 answer

Finding uitextfields by tag

I have multiple textfields on my view, and each time a textfield is taped a picker appears(the picker was made by code). This works fine for the first textfield, I can also select a row and the textfield receives it. But when I tap the second one…
Japa
  • 632
  • 7
  • 30
0
votes
2 answers

Date picker + Segmented control + some labels

Here is how the page should look like: It should have the following functionality: - By clicking the period on segmented control start date gets the value of present time - the interva and end date gets the value of the present time. - By…
Mladen
  • 25,578
  • 11
  • 39
  • 48
0
votes
1 answer

UIPIckerView in UIActionSheet in a TabBarController

I am trying to create a UIPickerView inside of a UIActionSheet with a "done" button in a bar on the action sheet above the picker and I am trying to display the action sheet from the tab bar. here is the code I am using to create my picker: …
El Guapo
  • 5,581
  • 7
  • 54
  • 82
0
votes
4 answers

UIPickerView and UITextField get value from UIPickerView

Ok I am having trouble figuring out how to approach this. I have a UITextField which I add to a UITableView dynamically according to the definitions of a XML file, in the XML file I may specify a list as one of the data types and what I do then is…
Armand
  • 9,847
  • 9
  • 42
  • 75
0
votes
2 answers

How to get the event when a picker view stopped scrolling

I need to perform some code when the user stop scrolling the picker, in other way, when the picker stop scrolling. The logic i want to follow is, once the picker stop scrolling, i get the current value and i do some database queries basing on that…
Luca
  • 20,399
  • 18
  • 49
  • 70
0
votes
1 answer

UIToolbar above custom UIPickerView not receiving touches

I've subclassed UIPickerView to add some a little more functionality(I'm 99% sure it has nothing to do with this question). In drawRect I added a toolbar to make dismissing the toolbar a little easier, the problem is, neither the UIToolbar, or the…
pob21
  • 1,918
  • 2
  • 16
  • 17
0
votes
0 answers

deformed text of UIPickerView

I have a UIPickerView I resized using the method CGAffineTransformMakeScale, but the text to 'internal pickerview is deformed by the transformation. I can't attach a screenshot of the result, but to do this I wrote this code: -(void)espandi { // …
GG91
  • 1
0
votes
2 answers

Pop Up UIPickerView Not Displayed

I'm attempting to implement a pop-up UIPickerView to emulate the behavior when clicking on drop-down field within Safari with limited success so far. I found: Bottom pop-up UIPicker? and have attempted to follow this. So far, I have my…
rwbutler
  • 387
  • 1
  • 4
  • 19
0
votes
1 answer

iOS – Weird exception

I'm getting a strange exception in Xcode 4.2.1 (ARC-enabled project) that I can't track down to the root of the problem. This is what the exception looks like: 2012-03-18 22:19:32.855 Project[14225:707] +[UIPickerTableViewTitledCell…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
0
votes
1 answer

How do I make my website prompt the iphone's equivalent of a dropdown menu?

I have a website that uses the AjaxControlToolkit. I'm making some parallel iPhone-friendly pages for the site, and since Ajax isn't very good-looking in a mobile browser, I'm trying to phase it out. One such Ajax tool is the CalendarExtender, which…
Andrew
  • 466
  • 2
  • 7
  • 22
0
votes
1 answer

Set range of a UIPickerView component

Is there a way to set the range of allowable selections in a UIPickerView? I have a UIPickerView with 2 components each representing a musical note value. One is the lower note. One is the upper note. I want to ensure that the user doesn't make…
fredwardo
  • 143
  • 1
  • 1
  • 8
0
votes
1 answer

UIPickerView change selected item at runtime

I have a UIPickerView where I load an NSMutableArray *column in it. In the *column array, I have a few UIImageViews as array's objects. At runtime, I would like to change the SELECTED item's image ONLY while maintaining the other's item's image. How…
GeneCode
  • 7,545
  • 8
  • 50
  • 85
1 2 3
99
100