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

UIPickerview passing text to label in another view

I just started learning so take it easy on me... The goal is to take the text value of the selected row in the picker and display that in a label in another view. Right now I'm having difficulty storing the string value, everything compiles and…
Bogiematch
  • 27
  • 7
1
vote
2 answers

Load a row from NIB in UIPickerView viewForRow

I'd like to create a fairly complex row in my UIPicker. All of the examples I've seen create a view from scratch like so... - (UIView *) pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent: (NSInteger)component…
Vineel Shah
  • 960
  • 6
  • 14
1
vote
1 answer

Two UIPickerViews in one View

I am new to Xcode. I am trying to build two UIPickerView in one view. The data in first UIPickerView is coming as desired but I am unable to get data in second UIPickerView. One picker has one component and another has two component. -…
1
vote
1 answer

Using one pickerView to show different array data

I am new to XCode. I was trying to use one pickerView and in that i wanted to show three different array data at different time. Like if i click on the button the picker view shows up with an array of data. Now when I click in background the…
1
vote
2 answers

How do I store a pickerview selection in a variable?

Why isn't this storing the pickerView selection into the property of my mainMatrix object? - (void)pickerView:(UIPickerView *)pickerView didSelectRow:(NSInteger)row inComponent:(NSInteger)component { [mainMatrix setM:[[self.numbers…
Alex
  • 451
  • 5
  • 13
1
vote
2 answers

How to use UIPickerView

I have been newly using UIPickerView, while showing UIPickerView do I need to hide all other controls in the same view, because I am getting issue like this. please see the image button behind is showing front. how to avoid this issue. Any idea?
Newbee
  • 3,231
  • 7
  • 42
  • 74
1
vote
2 answers

UIPickerView: last value followed by first value

Can anyone help me how to make the UIPickerView displays the first row's value after the last row's value, just like the UIDatePicker where after 12 the 1 will follow. Thanks
edie
  • 758
  • 1
  • 11
  • 29
1
vote
1 answer

UIPickerView viewForRow UILabel ignoring frame

I'm using a UILabel as a custom view for my UIPickerView, and I'm trying to pad the label in from the left by 10px or so. However, no matter what frame I set the UILabel to, it gets ignored. I'm basically trying to make a datepicker, with an…
Leon
  • 715
  • 1
  • 8
  • 22
1
vote
1 answer

2 Storyboards and 1 PickerView

I have 2 storyboards one is for an iPhone 5 and the other for the 4s/4/3. I made my picker programmitcally and I positioned it accordingly so it fits on the iphone 5 with this code picker1 = [[UIPickerView alloc] initWithFrame:CGRectMake(13, 272.5,…
Gabriel
  • 328
  • 5
  • 16
1
vote
2 answers

How to add a search bar to pick sorted data from Picker view

Hi guys i have added a picker view to pick areas from it.This picker view contains more than 200 areas so it is difficult to scroll and select from picker view. Is there any way to add a search bar and connect it with picker view? I tried doing this…
Sawant
  • 395
  • 6
  • 22
1
vote
1 answer

Is there a way to create a tabbed picker in iOS? Or somehow combine numpad + picker inputs?

I'm looking for a clean way to enable two interactions within one screen. For example: 1) User clicks on "Add Activity" button 2) User enters a number of standard units (e.g., 10 meters), and then picks an associated activity from a list (e.g.,…
1
vote
0 answers

UIPickerView on UIActionSheet in landscape mode appears blacked out

I have an app the I update a table row through a UIActionSheet. On the sheet I present a UIPickerView. The UIPickerView works and looks great in portrait on the iphone. But when I bring it up in landscape mode, it still works, but the outline area…
krason
  • 45
  • 6
1
vote
1 answer

Displaying nothing in the storyboard after selecting a value from the picker iphone

I have included a UIPicker in the program.And it contains 2 contents for eg A and B.What i need is suppose if the user has selected A from the picker, it should move the another storyboard. I am able to move to another view but it is showing…
Div
  • 179
  • 2
  • 5
  • 16
1
vote
1 answer

Tableview with picker view and persistence

I´m struggling a lot to find a good solution, and searched a lot also, but i can´t find anything similar with what i want, so i hope anyone can help me: I have two tableviews, in the first one i already have custom cells, and each cell has two…
Japa
  • 632
  • 7
  • 30
1
vote
1 answer

UIPickerView - populate 1 picker with multiple arrays

I got a Problem with a Picker View in Xcode 4.4. I want to populate 1 Picker with multiple arrays. I watched / read a lot of tutorials and could get almost to work. This is my code: *.h #import @interface PickerView :…
Fugu_Fish
  • 131
  • 2
  • 10