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

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 Article


Save 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 Article


Image may be NSFW.
Clik here to view.

UIPickerView 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 Article

How 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 Article

How 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 Article


Image may be NSFW.
Clik here to view.

iOS 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 Article

ios/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 Article

Swift: 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 Article


Mimic 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 Article


Image may be NSFW.
Clik here to view.

UIPickerView 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 Article

UIPickerView 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 Article

Image may be NSFW.
Clik here to view.

the 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 Article

Two 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 Article


UIPickerView 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 Article

UIPickerView 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 Article


How 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 Article

Issues 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 Article


How 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 Article

Image may be NSFW.
Clik here to view.

check 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 Article

Image may be NSFW.
Clik here to view.

UIPickerView 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
Browsing all 592 articles
Browse latest View live


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