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

How to create single Done and Cancel button for all the PickerViews?

I'm trying to achieve is that Done button should save the particular picker view row value to that specific UITextField.I've two pickerview inside a single view controller.override func viewDidLoad() {...

View Article


How to change the UIPickerView text color?

The default UIPickerView color for text is black. There has been some updates to the language in Swift4. I have found my own solution and answered below.

View Article


Pickerview with UITextField

I am making an app that has an excel sheet of data. I would like to insert that excel sheet into a picker view that is connected to a textfield. I then would like the user to input into the textfield...

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

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


UIPickerView String + Image

I would like to ask help for combining String and Image in UIPickerView, I'm having a hard time figuring out the ViewForRowViewModel.swiftimport UIKitclass ViewModel: NSObject {var item1 = ["item1A",...

View Article

UIPickerView delegate inside of TableViewCell not called

I have a TableViewCell that contains a UIPickerView. The problem is, that the delegate of UIPickerView is not getting calledextension ViewController: UITableViewDelegate, UITableViewDataSource { func...

View Article

How to disable UIPickerView (Objective-C)?

Is there a way to make the UIPickerView read-only? This means that the user cannot flip through the options.PS. This is not the same as not passing anything in the didSelectRow method because I only...

View Article


How to disable UIPickerView (Swift)?

I would like to disable the UIPickerView, but setting it to "isEnabled = false" does not work. And no, I don't want to disable the view while using it, but instead not being able to scroll through the...

View Article


Image may be NSFW.
Clik here to view.

SwiftUI - Styling Picker

I have a Picker like this:Im trying to change the style so it pops up like the keyboard does, see example:This is my code at the moment:Picker(selection: $profileViewModel.age, label: Text("Age")) {...

View Article

How do I change the font size in a UIPickerView in Swift?

How do I change the font size in a picker view? I have read a lot of questions about this, but none are in Swift 3. I have three picker views; the first two have two columns and have the same data...

View Article

Is it possible to combine UITapGestureRecognizer with pickerView didSelectRow?

I decided to add a tap gesture on my pickerview, is it possible to combine UITapGestureRecognizer with UiPickerView didSelectRow?'''@objc func tappedToSelectRow(tapRecognizer: UITapGestureRecognizer) {...

View Article

SwiftUI - picker is having freezing when selecting after keyboard is up

I have a picker:Section(header: Text("About you")) { TextField("About you", text: $profileViewModel.bio) Picker(selection: $profileViewModel.education, label: Text("Education Level")) {...

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

How to add UIPickerView in UIAlertController?

Could anyone help me I don't have any idea to do this. I have this class likeimport Foundationimport UIKitclass Alert { func loginAlert(viewController : UIViewController , callback: (result: Bool)...

View Article


Is there any way to add UIPickerView into UIAlertController (Alert or...

I'm totally new to swift (and iOS programming at all), but I started messing around with it (it wasn't a good idea when everything is still beta version :D). So I tried to figure it out by myself, but...

View Article

Anonymous closure arguments cannot be used inside a closure that has explicit...

So I'm trying to create a Picker in SwiftUI that uses every item of an array. Xcode says "Anonymous closure arguments cannot be used inside a closure that has explicit arguments" when I try to let it...

View Article


xcode11 how to give a selected option an action, in a PickerView. So that...

For example I select in the PickerView ( country: Scotland, City: Aberdeen ) once I have selected both options in a picker view, I would select a button and have that action take me to another page...

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

How to add a border to a UIPickerView?

How would you add a border to a UIPickerView? Cant seem to find any property for it. Is there some kind of work around?I actually have two UIPickerViews next to each other, if possible I would like to...

View Article
Browsing all 592 articles
Browse latest View live


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