Quantcast
Channel: Active questions tagged uipickerview - Stack Overflow
Browsing all 592 articles
Browse latest View live

UIPickerView selection input Swift 4 or 5

I have a UIPickerView that selects from an array of states and the last item in the array is “outside the US”. When the last item in the array is selected I want to show another input option for...

View Article


Swift: Reading from an UIPickerVIew

I'm trying to read ints from an UIPickerView, I've already done this but it's only a print on an UILabel. this time I need the data so I can put sounds for each number, so I can make a queue announcer...

View Article


passing Json array to UIPickerView Not working

i get data form JSON . Like this -(void)connectionDidFinishLoading:(NSURLConnection *)connection { al=[NSJSONSerialization JSONObjectWithData:webData options:0 error:nil]; NSLog(@"String String...

View Article

Image may be NSFW.
Clik here to view.

How can add a UIPickerView in a UIAlertController?

I've created a UIAlertController with a UITextfield and a UIPickerview. When I press the button to present the UIAlert the UIPickerView is totally displaced. How can I fix it? Here's my code: func...

View Article

How to build a user profile page with Xcode

As part of an app I am building, I want to incorporate a user profile page. it should have am image view for a picture, a label for the alias/ userName, and a picker view with a selection of countries...

View Article


How to make element in UIPickerView not clickable or "disable" it [duplicate]

This question already has an answer here: Disable particular row value in UIPickerView 1 answer I have a UIPickerView which has lets say 4 Elements in it, now if one element is selected, I want that...

View Article

The item appearing when I open my UIPickerView is not considered "selected"

When I open my UIPickerView the item appearing is not considered selected in didSelectRow, I have to move up and down and reselect it This is an extra step for the user if the item appearing is the...

View Article

Image may be NSFW.
Clik here to view.

UIPickerView where selected 1st component decides contents of 2nd component...

I have encountered some synchronisation/graphic update problems with my UIPickerView. I want a view with 2 components, where the content of the second component depends on the selected row of the...

View Article


Image may be NSFW.
Clik here to view.

How to make UIPickerView not to display if delegate data is empty on...

I do not want to display UIPickerView if statusArray is empty when user touch up inside the text field for start editing. My requirement is after entering 3 characters, I'm going to make a web service...

View Article


Does not conform to protocol UIPickerViewDataSource

I don't know what's wrong with my code. I tried to follow the tutorial but same error happen. Error: Type 'FourthViewController' does not conform to protocol 'UIPickerViewDataSource' Here is my code:...

View Article

programmatically stop uipickerview animation on iphone

I have a UIActionSheet containing a picker and a UIToolbar. On the UIToolBar there is a save button. However, some of my users reported pressing the save button before the UIPickerView stops spinning...

View Article

iOS 13 UITextField inputView with UIPickerView causing app to not be...

I have the following code that worked before for making a UITableView cell tap to show a UIPickerView on screen:fileprivate var hiddenField: UITextField = UITextField(frame: .zero) override func...

View Article

Image may be NSFW.
Clik here to view.

swift UIAlertController with pickerView button action stay up

I am new in swift and I am trying to make UIAlertContoller with PickerView but I have problems with the Buttones, Here a photoI am trying to change the constraint of the buttons to stay up. I read a...

View Article


Can't change selected view in Picker View

I can't change the selected view from pickerView when it is shown for the first time.Also, I tried to call the didSelectRow delegate method directly after the selectRow method in viewDidLoad, but...

View Article

Multi-Component Picker (UIPickerView) in SwiftUI

I'm trying to add a three-component Picker (UIPickerView) to a SwiftUI app (in a traditional UIKit app, the data source would return 3 from the numberOfComponents method), but I can't find an example...

View Article


PickerView fontsize change accordingly iOS Swift

should look like this In pickerView i want to change title font size, as I scroll the selected row title font will be of high font size and above selected title font size will be decreasing and same...

View Article

How to make a UIDatePicker appear at bottom of screen?

I currently use MonoTouch with MonoTouch.Dialog. When tapping on a date field it pushes the navigationcontroller so you go right a screen to see your UIDatePicker where you choose the date then go...

View Article


for loop in titleForRow in pickerView not working

I was creating a clock pickerView and used the following:var countSec = Array(0...10) var countMin = Array(0...59) var countHour = Array(0...59) func pickerView(_ pickerView: UIPickerView, titleForRow...

View Article

UIPicker set value based on description

I'm building a UIPickerView very similar to what we have in the post 3 Component Dynamic Multi UIPickerView Swift.My code isClass Countryimport UIKit class Country { var name: String var cities: [City]...

View Article

Image may be NSFW.
Clik here to view.

UiPickerView with custom fixed label and autolayout

I need to implement a UIPickerView to choose hours, minutes and seconds. I need to have a label, next to each component that stay fixed when the picker spin. For example you can look at the timer...

View Article
Browsing all 592 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>