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

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


Image may be NSFW.
Clik here to view.

UIPickerView with UIViewRepresentable does not fill the whole width

Unfortunately, when I create a UIPickerView in SwiftUI with UIViewRepresenable it doesn't fill the whole screen. I've also tried giving it a lot of frame modifiers, but nothing worked. Does anyone have...

View Article


How to use two UIPickerViews in one view controller?

I have two UIPickerControllers in one view controller. I can get one to work, but when I add a second, my app crashes. Here is the code I use for one picker view:import UIKitclass RegisterJobPosition:...

View Article

Image may be NSFW.
Clik here to view.

UIPickerView with UIViewRepresentable does not fill the whole width

Unfortunately, when I create a UIPickerView in SwiftUI with UIViewRepresenable it doesn't fill the whole screen. I've also tried giving it a lot of frame modifiers, but nothing worked. Does anyone have...

View Article

Adding IB constraints breaks UIPickerview - ObjC

I have a view built with interface builder. Whenever I add a pickerview (either via IB or programmatically) on top of the existing IB view, the pickerview will not work. The elements within the...

View Article


Using ForEach inside a Picker

I'm having issues pulling data from an Array into a picker using SwiftUI. I can correctly make a list of the data I'm interested in, but can't seem to make the same logic work to pull the data into a...

View Article

swift why can't I do a .selectRow in func pickerView titleForRow?

When user taps a UIPicker row, I want that row to be the selection, so in func pickerView I call .selectRow but this causes this error:"Attempted to call -cellForRowAtIndexPath: on the table view while...

View Article

How to set a default Value of a UIPickerView

I have a problem with my UIPickerView.I have 3 values in it EU AP and NA.When I start the app EU seems to be selected but when I make a NSLog(@"%@", [regions objectAtIndex:row]); I only get back...

View Article


SwiftUI Segmented Picker not responding to user input

I have a segmented picker control that is dynamically generated from my model's values. I have made a minimal reproducible example, and here is the model:class DataModel: ObservableObject { @Published...

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

For bigger font in Swift UIPickerView row, should I replace titleForRow with...

My two column (ie. 2 component) picker works great.But some rows are truncated because picker doesn't have enough room for some rows.All the online guides recommend:func pickerView(pickerView:...

View Article

Preselected options in UIPickerView when app starts SWIFT

I am new at Swift and I need help.I have 4 UIPickerViews that have some data. Result ( that are combination of 4 ) is shown in Label. And everything is working smoothly, but what I want is, when the...

View Article

Image may be NSFW.
Clik here to view.

How can I change the appearance of the row in date picker?

How can I change the appearance of the row in date picker?Actually, I need this UI in the row

View Article


WKWebView interaction not triggering dropDownlist in web page from tag iOS...

I'm trying to select a dropDownList in a web page inside my application using WKWebView but it does not respond and could not trigger UIPickerView or DropDownlist in iOS 15.x.x although it works well...

View Article

PickerView in custom cell delegate where my tableVIew is

I want to implement picker that is in my custom cell, in my VC that has the tableView, I can't figure out how to reference that specific picker (because I have other 2), so if I try to make a switch...

View Article


How to change the Font size in UIPickerView?

I have one UIPickerView. This is having nearly 200 items, each items has long texts, so, i want to resize the UIPickerView's font size. How can i change it? It is possible?Can any one help me? Thanks...

View Article

PhoneGap iOS UIPicker equivalent element: select an option value...

Using PhoneGap, I have a element rendered as a UIPicker that contains 2 options.So far I have failed to programmatically set the 2nd option as the selected one.Here is how the code looks...

View Article


SelectRow UIPickerView Doesn't Respond

pickerView.selectRow should trigger and according the surveyType should change cellTypes.func configureFixedTop(indexPath: IndexPath) -> SurveyTopTableViewCell { let cell =...

View Article

Does Android provide widget like the iPhone UIPickerView

I feeling that the UIPickerView of iPhone is good idea and easy to use on touchable mobile phone. I am strange that why Android SDK do not provide the same effect widget ?or maybe coder have to clone...

View Article

Image may be NSFW.
Clik here to view.

Change the color of a focused element (Picker) SwiftUI - WatchOS

How can I change the focus color of a selected element in WatchOS7 with swiftUI. Here's my example below with a Picker whose focus color is green (the default one) but I want to change it to blue to be...

View Article
Browsing all 594 articles
Browse latest View live


Latest Images

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