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

How insert an images and text in specific rows of an UIpickerView?

I have implemented the following function: - (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { UIImage *img = [UIImage imageNamed:@"persona.jpeg"]; …
1
vote
1 answer

How to dectect all values of UIPickerView with 2 components in didSelectRow?

Im very new to xcode and i have a question to my first app. I have a UIPickerView with 2 components filled with NSMutableArray in my App. If the first component is changed, the second components Array got cleared and Filled with new Values. Now i…
HelloXcode
  • 53
  • 5
1
vote
1 answer

UIPickerView: Sorting & displaying an array of values causes crash when moved?

I'm trying to sort an NSMutableArray of Strings into alphabetical order and display the sorted list in an UIPickerView. I'm using another NSArray to create a sorted list. Im using the PickerView Delegate Methods and have included them in my .h…
1
vote
1 answer

Dismiss UIPickerView when selected row is tapped

I'm using UIPickerView to let the user pick from few options, when I show the picker I scroll to the last selected row. When user select a row I want to always dismiss the picker (even if user tap the already selected row), I dismiss the picker…
user1590031
  • 308
  • 1
  • 5
  • 15
1
vote
0 answers

UIPickerView didSelectRow event lags or is dropped completely

I have a case where UIPickerView didSelectRow messages are only sent after a long delay. In some cases, they don't get sent at all. Context: my app is doing some heavy, animated compute and rendering stuff during the time when the user would spin…
Anna Dickinson
  • 3,307
  • 24
  • 43
1
vote
2 answers

ios how to determine if uibarbuttonitem has been pushed/selected?

I need to load a view based on [PickerView didSelectRow:(NSInteger)row inComponent(NSInteger)component] I have the highlight and selection logic figured out, what I need now is just a simple way of determining if the select button has been pressed…
zeboidlund
  • 9,731
  • 31
  • 118
  • 180
1
vote
1 answer

UIPicker View doesn't respond touch fully on action sheet

I added a UIPicker view on action sheet and called on text Field touch. action sheet appears picker shows but picker doesn't respond touch properly only selection bar of picker responds touch.
Gaurav
  • 451
  • 1
  • 5
  • 7
1
vote
1 answer

multiple UIPickerViews - without a .xib

I have a view. I would like to be able to put 1-3 UIPickerViews in it. The number of UIPickerViews is determined by the value of a variable myVariable. Each UIPickerView is different. Some of the values for myVariable mean that there will only be…
alsuhr
  • 129
  • 2
  • 11
1
vote
1 answer

How to make an if statement using a pickerView

I have a pickerView and depending on the selection in that pickerView i want a button(calculate button) to perform one of two mathematical operations. The pickerView has one component, and 2 rows male, and female. If the user selects male, and…
user1450221
  • 109
  • 2
  • 12
1
vote
3 answers

How can I populate TextField with a UIpickerView that has more than one column?

I have a UIPickerView display with the inputView of a textField. I have split the pickerView into two columns. One is whole numbers 50-500. The other is 0.25,0.50,0.75. I want them to be able to select the whole number, and then the decimal part…
user1450221
  • 109
  • 2
  • 12
1
vote
1 answer

How to Increment numbers in an array to populate UIPickerView

I have a UIPickerView that I am populating with an array. It has two columns and i need the first column to go from 50-500. the second column to go from 0.01 to 1. The point is for the user to pick their weight. For doing the 50-500 I have this,…
user1450221
  • 109
  • 2
  • 12
1
vote
4 answers

resizing UIPickerView

I'm trying to create an UIPickerView in UIAlertView, I wrote the following code UIAlertView *alert = [[UIAlertView alloc] initWithFrame:CGRectMake(0, 0, 300, 200)]; alert.title = @"Preferences"; alert.message = @"\n\n\n\n\n\n\n"; alert.delegate =…
user1553381
  • 415
  • 2
  • 13
  • 30
1
vote
1 answer

Error on UIPicker [__NSCFConstantString _isResizable]:?

UI Pickers got me stuck again, Im still learning with the UI picker so not sure if ive done something fundamentally wrong here. Trying to display an image from row UIPicker. Error: *** Terminating app due to uncaught exception…
JSA986
  • 5,870
  • 9
  • 45
  • 91
1
vote
1 answer

Drop down selection with UIPicker performance

I wanted to use a UIPicker to simulate a drop-down menu and I found this code. It`s the second answer. UIPickerView select and hide Its exactly what I was locking for except for one thing. When I tap my TextField activating the method, like the…
pedros
  • 1,197
  • 10
  • 18
1
vote
1 answer

iOS: UIPickerView default dimensions

I would like to know the width of the dark grey frame on either side of the inside picker part and the width of the separators between components. This would be at default settings (eg. what's shown in the .xib). Or, how to find such values…
alsuhr
  • 129
  • 2
  • 11