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

How to get my data into the PickerViewModel

Using the answer at this link TextInput Field with Pickerview instead of keyboard as a guide, I wrote the code below. I have three UITextFields that I need to configure a picker as input for. The...

View Article


Image may be NSFW.
Clik here to view.

IOS7 UIPickerView how to hide the selection indicator

How can I hide those 2 lines on the selected row?

View Article


How to customize selected entire row background color of UIPickerView, not...

I tried to find a lot of times but nowhere mention about this topic exactly.Could I change the center selected row view background to dark blue like this image?Many thanks for help!Swift or Objectivec...

View Article

Picker delegate scrolling method in SwiftUI

I have simple Picker object in my SwiftUI hierarchy:Picker(selection: $pickerSelection, label: Text("Select your item")) { ForEach(0 ..< items.count) { Text("\(self.items[$0].valueCode)") .tag($0)...

View Article

Hide the cursor of an UITextField

I am using a UITextField with a UIPickerView for its inputView, so that when the user taps the text field, a picker is summoned for them to select an option from.Nearly everything works, but I have one...

View Article


Take data from Enum to show on UIPickerView

I am creating a simple View where there is a UIPickerView and I want to display the choices on the PickerView from an enum. I have created an enum of possible drinksenum drink{ case coffee case tea...

View Article

Populate UIPickerView data using http request

I have this UIPickerView which will have data yet, but doesn't have data, since I make async http request func pickerView(pickerView: UIPickerView, numberOfRowsInComponent component: Int) -> Int {...

View Article

Image may be NSFW.
Clik here to view.

Swift - Visionkit How to edit the color of the buttons "Keep Scan" and "Retake"

I have a problem.I've implemented the visionkit framework in order to detect a text when the camera is used.The problem is that the colors of the buttons: "Keep Scan" and "Retake" are blue. I want them...

View Article


UIPickerView in Container View not resizing when animating container height...

Using IB, I have set up a UIVPicker in a Container View's associated UIViewController. The Container's height is controlled by two auto-layout constraints, one which sets the height to zero, one which...

View Article


Image may be NSFW.
Clik here to view.

Hide Picker View Hide Left Swift

I am trying to hide left up and down arrow. Is there any way to hide left arrow in picker viewCode:let picker = UIPickerView()picker.tag = tagpicker.delegate = selfpicker.dataSource =...

View Article

Image may be NSFW.
Clik here to view.

Pickerview is showing empty on second click in the textfield, adn when i...

var gender = ["MALE","FEMALE", "Other"]var genderPicker: UIPickerView! = UIPickerView()// On the first click in the textfield the gender pickerview works fine, but if i press out and then i press again...

View Article

Why my pickerview doesn't appear on certain text field?

I have found this video where was shown way for adding picker views with fields to the app. I have added three fields:@IBOutlet weak var position: UITextField!@IBOutlet weak var emplFilter:...

View Article

RxSwift - Filter data from tableview from UIPickerView

i try to filter data from my table View. When i select one value from picker View, The data suppose to filter based on the category and the table view should reload with filtered data.here i attach the...

View Article


PickerView not showing viewForRow - Swift - Programmatically

I'm setting up a UIPickerView and in order to do that I decided to use the method viewForRow of the UIPickerViewDelegate which returns a UIView.The pickerView shows correctly but the "selected" state...

View Article

Setting UITextField's inputView property to a UIPicker not working in Swift

Hello I am trying to pop a UIPickerView view programmatically when user clicks on textfield. I have tried this but it doesn't doing anything, it isn't working. Nothing is happening when I click the...

View Article


Image may be NSFW.
Clik here to view.

UIPickerView get selected value without datasource

What would be the best way to get the value from a PickerView without having a datasource? So i can not read values from i.e. an array.Current values are just row numbers, that i need to read after...

View Article

Using multiple UIPickerViews in dynamic UITableView

I am trying to make use of UIPickerViews, whereby the user can select an "amount"(number) between 1 and 20. In my TableviewCell there is a label and the picker.Before I implemented the...

View Article


How to pause the code and wait for an answer from UIAlert on Swift using...

I got to say I've searched around for the answer in stack overflow, but couldn't find it so that's why I'm asking it...**MyProblem:my problem is - I'm making a Pomodoro App, and I let theuser to set...

View Article

SwiftUI - Using CoreData Fetched Result to Populate Picker

I'm following every guide I've seen online to bring in the managed object to the SwiftUI scene with environment and then run a @FetchRequest in the scene, all of it works great.I can use that result to...

View Article

multiple pickerview didSelectRow error in Swift

I have 2 pickerviews, 1 pickerview is to select a crypto-currency from an Array and the other pickerview is used to select a currency from an array. The problem I am having is when I run the app on...

View Article
Browsing all 592 articles
Browse latest View live


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