validation from response using pickerView (swift)
I have three textFields one for keys and one for values of the key and the other for id of the value I want if I choose ex: "Color" key in key textField then show in value textField : red and white...
View ArticleSave data from UIPickerView in NSUserDefaults based on user selection and...
This is my problem.In one ViewController there are two PickerViews which have data taken from a server and shown on the rows of the pickerView.What I want to do is to save in the NSUserDefaults the...
View ArticleUIPickerView text plus image
is it possible to create UIPickerView where there will be text and image in one row?I know how to create it with text only:class FirstViewController: UIViewController, UIPickerViewDataSource,...
View ArticleHow to save selected option in UIPickerView
I have a PickerView which should save the selected pickerView but it is selecting only the default option.I have tried using user default but it didn't work.I am using Xcode 8. func...
View ArticleHow to disable UITextField editing but still accept touch?
I'm making a UITextField that has a UIPickerView as inputView. Its all good, except that I can edit by copy, paste, cut and select text, and I don't want it. Only the Picker should modify text...
View ArticleiOS UIPicker height row autosize
Good afternoon, everyone. I want the height of one element to adjust to the maximum size.Here is an example of my code (which doesn't work):struct ContentView: View { private let items: [String] =...
View Articleios/uipickerview: How would I have a picker view for US states
IOS newb with web programming background.In html I am used to drop down boxes with states (i.e. AK,AL,CA,MA,NY,NJ, etc.) using the select statement. What is the equivalent syntax using UIpickerview? I...
View ArticleSwift: How to set a default Value of a UIPickerView with three components in...
How do I set the starting row of the picker view in Swift?I see there is a code for Objective C, but I don't understand it. If anyone could explain how I can translate the Objective C code into Swift...
View ArticleMimic gesture to drive UIPickerview
Bear with me. I did some investigations.What I want, is a UIPickerview to behave as if it was operated by me, the user.I know this:self.picker.selectRow(43, inComponent: 0, animated: true)but that...
View ArticleUIPickerView display question mark
I'm trying to display Blood type in PickerView, but for some reason the choices are displayed as question marks only !Here is my code: class RegisterViewController: UIViewController,...
View ArticleUIPickerView EXC_BAD_ACCESS crash
I'm getting a crash with a stack trace I don't understand.Here is the stack trace:Crashed: com.apple.main-threadEXC_BAD_ACCESS KERN_INVALID_ADDRESS 0x00000000000000000UIKitCore-[UISectionRowData...
View Articlethe contents of UIPickerView are not displayed
I am using UIPickerView and it works normally in most cases, but the contents of UIPickerView are not displayed under the environment of iPhone11 Pro iOS14.6.It is as shown in the image below.(above...
View ArticleTwo UIPickerViews with Large Data Set
I would like to create a simple app in Xcode with two UIPickerViews that reference a data set where the second UIPickerView is dependent on the first one. I want to create an app where the user can...
View ArticleUIPickerView default row
If I want to have the default row when the view controller starts as [2] or any other row number, how do I carry that out?var pickerData = ["2x2","4x4","6x6","8x8","12x12"] override func viewDidLoad()...
View ArticleUIPickerView Accessibility VoiceOver Issue
When VoiceOver is enabled, voice-over for the UIPickerView always says “#Item 1 of #TotalNumberOfItems” no matter to which row we swipe.Programatically all the elements are getting updated with the...
View ArticleHow to open a UIPickerView on click of UITextField's Rightview in Xamrin IOS...
I have a created a custom Picker with downarrow image at right side using UITextFied in Xamarin ios. When I click the downarrow, the picker is not opening. But when the click centre of the UITextField,...
View ArticleIssues with rotating segmented Picker
I am essentially working off this template. @State var Scenario = 0Picker(selection: $Scenario, label: Text("")) { Text("1").tag(0) Text("2").tag(1) Text("3").tag(2) }...
View ArticleHow do I update two UITableViewControllers from UIPickerView case statement
So I have two UITableViews in one ViewController, that are meant to be updated depending on the user's UIPickerView selection. I have two functions which call an API, and display the results in the...
View Articlecheck if a textView picker view contains a certain string
I have an app that allows people to make posts. I am trying to check if my textView picker contains a certain text and if it does an alert should show telling them to pick again.Image belowif the text...
View ArticleUIPickerView rendering incorrectly after iOS 14/Xcode 12.0.1 update
Anybody notice that the text in your application's UIPickerViews is rendered incorrectly, with the first character cut off? I'm seeing this in all UIPickerViews in my app, on multiple devices. You can...
View Article