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
1
vote
2 answers

What is the iOS7 equivalent to HTML radio buttons?

I want the user to select his gender. Is there an iOS7 equivalent to HTML radio buttons? I find the iOS switch awkward for gender selection and a picker view overkill...
mrd
  • 4,561
  • 10
  • 54
  • 92
1
vote
2 answers

UIPicker - selectRow:12 inComponent:0 animated:NO not working (12 or more than 12)

I am facing a weird issue for UIPicker. I have UIPicker where I am showing some states of US. By default random selection is already done. For that I am using below statement. [statesPicker selectRow:myRegPos inComponent:0 animated:NO]; However,…
Fahim Parkar
  • 30,974
  • 45
  • 160
  • 276
1
vote
0 answers

Xcode 5 Picker Height

I read here there are only 3 accepted heights for the picker There are only three valid heights for UIPickerView (162.0, 180.0 and 216.0). You can use the CGAffineTransformMakeTranslation and CGAffineTransformMakeScale functions to properly fit…
Kurt L.
  • 623
  • 10
  • 23
1
vote
1 answer

Switching a UIPicker for a keybaord

I have researched this, but found only how to switch a keyboard for a keyboard. Right now I have a UIPicker and that appears when a textfield is tapped. In the Picker their are three options, and the third is custom. What I want to happen is when…
i_duhh_bomb
  • 300
  • 1
  • 10
1
vote
1 answer

Making UIPicker pop up when textfield is tapped

I made a application with the templet of a Single View Application. Then I added a label and connected it to the .h file of my ViewController. Then I made a picker, filled it, then set it (and a toolBar I made) to the textfield. But when I tap the…
i_duhh_bomb
  • 300
  • 1
  • 10
1
vote
4 answers

UIPicker in UITextField

I wanna show a picker when I click inside a UITextField. This is my code (which works): [super viewDidLoad]; // Picker View dei Tipi pickerTipo= [[UIPickerView alloc] init]; pickerTipo.showsSelectionIndicator = YES; UIToolbar*…
gdm
  • 7,647
  • 3
  • 41
  • 71
1
vote
1 answer

Disable the highlighted date in UIDatePicker

Is it possible to completely disable the highlighted date in the UIDatePicker.Dont want to show the blue color for any dates
Nassif
  • 1,113
  • 2
  • 14
  • 34
1
vote
1 answer

UIScrollView makes UITextField stop calling UIPicker

To start off. I have researched this on SO and elsewhere and have not found an exact answer to the problem. I have seen problems similar, but not the same. I have a fully functioning App that uses a picker to populate about 5 textfields. When…
Douglas
  • 2,524
  • 3
  • 29
  • 44
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

Custom uipicker- dealing with image size

-(UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view { //NSLog(@"%d",component); // NSLog(@"tag: %d",pickerView.tag); if([pickerView…
user1724168
1
vote
0 answers

UIPicker interaction between them

I have 2 pickerviews on screen. Both populate rotate and taps return correct and expected results. They are distinguished by the TAG property using the "if/switch" statement in the necessary delegate methods. What I'd like is forpicker1 to change…
saxbya
  • 11
  • 2
1
vote
2 answers

How to change text color inside uipicker?

How to change the text color inside picker with various colors. For Example:
user865155
0
votes
1 answer

UIPickerView with 2 components

I have a UIPickerView with 2 components The default value of both components is selected to the initial index. How can I set the 1st component to the second index and leave the 2nd component on the 4th item. -- UPDATE -- I added [currencyPicker…
Cocoa Dev
  • 9,361
  • 31
  • 109
  • 177
0
votes
1 answer

Best way to save values selected in UIPicker?

I have 3 UIPickers in my view, I would like to save the selected values for when my app closes. Im currently using NSUserDefaults for everything else. But I wasn't sure of the syntax for save selected values of UIPickers. Thanks my fellow coders!
Jason
  • 650
  • 2
  • 10
  • 33
0
votes
1 answer

Make UIPicker have at least one foot value?

Just like with Apples timer app, you can't select "0". You have to choose at least 1 hour or 1 minute. Here is how I'm formatting the textfield for the picker.. //Formats the textfield based on the pickers. - (void)pickerView:(UIPickerView…
Jason
  • 650
  • 2
  • 10
  • 33