Questions tagged [pickerview]
72 questions
0
votes
0 answers
UIViewController with ContainerView and UIView
I am very new to iOS Programming. I am trying to develop a simple application where I have a difficulty to add pickerview to label action in TableViewController with static cells. So I am trying to use a UIViewController which has container view and…

Haritha
- 1
0
votes
2 answers
UIPickerView selection sends nil value to new ViewController
I am trying to pass the selection of UIPickerView as a string to a new ViewController, unfortunately when I do it is returning a nil value. I have been following a few different tutorials but I cannot seem to get it to work. Any suggestions would be…

user2869163
- 83
- 6
0
votes
1 answer
MDCTextField in Objective C and Picker
In my iOS apps written in Objective C, I have recently started using the Material Design components by Google. I have then transformed my UITextField into MDCTextField which look great.
When I have to select the value to enter into a list of…

Dominique Sauquet
- 83
- 6
0
votes
2 answers
How can I delete the selected location in a pickerView using a UIButton?
I'm trying to delete the elements of an pickerView using a UIButton, but after 3 consecutively deleted elements I get the error (Index out of Range).
Sorry for my bad english I am still young and live in Germany :D
import UIKit
class…

Maxi
- 35
- 7
0
votes
0 answers
pickerView:didSelectRow:inComponent getting called twice with VoiceOver
I'm not sure what I'm missing here, but when you select a picker view row with VoiceOver pickerView:didSelectRow:inComponent gets called twice.
Without voice over it gets called once.
I've tried this on a brand new project with bare bones…

Jared
- 793
- 6
- 16
0
votes
1 answer
How to use UIPickerView with TextField more than once?
Below is my code, this allows one Textfield to have a pop up pickerView as an input source. I want to know what i need to add to allow a second TextField to also have a pop up pickerView as a input source.
I have managed to get the…

Lewis Jones
- 1
- 2
0
votes
1 answer
I would like for my picker to reload the Firebase data with the new child
I'm trying to get my picker to reload the data from Firebase.
It responds to the first thing in the textLbl when viewed.
I would like it to reload using one of the other strings as well.
example I T is the first line to appear its already set…

Issac
- 3
- 3
0
votes
1 answer
why do my buttons not make my pickerview appear?
Here is the code that I got help on previously on here, I just cannot quite tell what is missing for my code to work. I have it set up so a button is pressed to make the pickerview appear and then the choice appears in a label. But when I click on…

mrpotter
- 17
- 1
- 8
0
votes
2 answers
clicking on a button, to make pickerview appear, then choice appears in label
I have set up my viewcontroller to have a 5 buttons with 5 labels and one pickerview. I am hoping to have it set up so upon each button clicked it will pull up the pickerview according to which button is chosen and then the choice that is chosen…

mrpotter
- 17
- 1
- 8
0
votes
0 answers
Aligning pickerviews with Swift correctly
How can I align these pickerviews to appear exactly how they are on my storyboard?
I have tried to constrain each of them to 0 on their left and right, but sometimes they disappear when I try to have their bottom or top constraint to a lower number,…

corky romano
- 83
- 5
0
votes
0 answers
Check for empty TextField from PickerView - Swift
I have two TextFields that I want to check if they are empty. One is getting the Data by Keyboard input and the other gets the Data from a PickerView.
I used this before I changed the second TextField from Keyboard input to PickerView input:
func…

Sane
- 61
- 6
0
votes
0 answers
How can I do a random String array without repeating in Swift?
I am working on picker views and I am doing a trivia game. So I got an Array with different questions and another one with answers, this is what I have:
my code
So my question is: I need to do this but without repeating questions/answers, is there…

ToniTJK
- 181
- 1
- 3
- 11
0
votes
1 answer
swift3 country and phone code Picker
I am using Xcode Version 8.3.3, trying to use country pickerview from https://github.com/4taras4/CountryCode. I manually just drag and drop CountryPicker folder to my xcode project. However, i got error when import CountryPicker (error is "No such…

Eric Chong
- 495
- 1
- 7
- 21
0
votes
2 answers
Change text in a PickerView
I used this code in Objective C to change language in a PickerView:
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view, typically from a nib.
self.dicke = [[NSArray alloc]
…

Uwe
- 1
0
votes
2 answers
picker view array row is will only display 0
I have a picker view of int in my Swift code. It has numbers 1-7 in an array called numbers. When I ask to print numbers[row] inside the didSelectRow function it prints the correct numbers. But within my submit tapped function it only prints 0. It…

Michael R.
- 25
- 9