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

How can I get images to appear in UI PickerView Component in Swift?

I am trying to use images in a Swift PickerView. I don't know how to get the images to actually appear in the component. I know how to do this using Strings with the titleForRow function but I don't...

View Article


Tapping on TableViewCell to show UIPickerView

I have a custom TableViewCell and UIPickerView as an inputView to a cell's textview:class PickerTableViewCell: UITableViewCell { let picker = UIPickerView() let pickerOptions: [String] = [] lazy var...

View Article


Dependent Selection using UIPickerView on 3rd Button

I want button3 to show elements using uipickerview based on button2 selection. button3 will depend on button2.["Round": ["X", "Y", "Z"]]["Square": ["X", "Y", "Z"], "Oval": ["A", "B", "C"], "Rectangle":...

View Article

Image may be NSFW.
Clik here to view.

How to achieve the custom picker with Month, Date and time in iOS swift?

I am developing an app which requires to select the date from a picker view. But the picker view requires the Month,Date and time in the Picker view rows like in the attached image:currently i am...

View Article

Image may be NSFW.
Clik here to view.

How to prevent the selection of invalid dates in UIPicker view in swift?

I am using the UIPicker view for showing the Day, date and time as per the below screenshot:I have implemented this by using the following code:import UIKitclass ViewController: UIViewController,...

View Article


DatePicker with multiple Dates but TimeRange in slot

I want to show 7 days dates from current date on UIDatePicker but the time range should be limited like only between 9:00 AM to 9:00 PMI can get minimumDate and maximumDate but it just shows the date...

View Article

how to add multiple data items to a picker view in swift for xcode 11.5

how to add around 3500 items in the picker view or some easy drop down list kind of elements from the data provided in the csv file and also map them with individual values corresponding to that data....

View Article

Image may be NSFW.
Clik here to view.

Row Separator in UIPickerView

How do i hide the Separator in my Picker View.Here is the screenshot .Here is the code for my custom UIPickerView.- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row...

View Article


Image may be NSFW.
Clik here to view.

Bringing up a UIPickerview rather than keyboard input iOS

Basically I would like to have the user click in the text field and it bring up a populated pickerview rather than a keyboard. This would also need a toolbar with a done button as well Im presuming. I...

View Article


UIPickerView didSelectRow not called

(Swift, Xcode6, iOS8, iPhone)In my UIPickerView control, didSelectRow is not being called.Yes, I have set Splash as the delegate (and datasource) for the picker.Splash extends the UIViewController...

View Article

Constraints error when using a UIPickerView

Whenever I click on one of the pickerviews that I create, I get the following error logged to the console:[LayoutConstraints] Unable to simultaneously satisfy constraints. Probably at least one of the...

View Article

Multiple components picker view Index out of range [closed]

My UIPickerView() holds the following data:pickerData = [["every"], ["1", "2", "3", "4", "5", "6", "7", "8", "9", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "20", "21", "22", "23",...

View Article

Image may be NSFW.
Clik here to view.

Circular Orbit-like Picker iOS [closed]

I need to implement a picker which would behave like you are picking a planet out of many on the same orbit.Search for some library I could customize yielded no results.So far I tried creating a custom...

View Article


Image may be NSFW.
Clik here to view.

Is it possible to create a countDownDuration pickerView like the one in...

I'm trying to create a Pickerview that displays three components with hours, mins, and sec labels. Something like this:I have tried using the UIDatePicker view, but it only allows for hrs and min...

View Article

Image may be NSFW.
Clik here to view.

Swift 5: UIPickerView dismisses slide-in panel

I have a picker view implemented on a view that is out of sight by default and slides-in when button is pressed.Below is my code and screenshot:class PromotionViewController: UIViewController {...

View Article


Image may be NSFW.
Clik here to view.

How to make a timezone Picker in SwiftUI?

I m new to SwiftUI. I want to make a TimeZone PickerView for my example project.After a few day works, I still cannot find a way to achieve my goal, including timezone search bar. I don't know why my...

View Article

how do I load the UIpicker on page load in swift?

I have two pickers and I want picker1 to be show by default when the page first loads and also when user touches the UI. I want to show in both ways for picker1.func numberOfComponents(in pickerView:...

View Article


How to populate a UIPickerView from Realm database?

How to populate a UIPickerView from Realm database?Do you know any online guide or video that explains how to do it? Their site does not have this information.

View Article

iOS Swift, is there a way to make the UIPickerView smaller? It is taking half...

I have a UIPickerView and it's gigantic by default and I'm not able to resize it.below functions only resize the part that is selected but I want to make the entire picker view smaller. I don't need to...

View Article

Image may be NSFW.
Clik here to view.

Question mark displayed on UIPickerView instead of Realm data on Xcode 10

I am learning to populate a UIPickerView from Realm database.The issue is that the UIPickerView displays "?" instead of the data.Here is my code:import UIKitimport RealmSwiftclass...

View Article
Browsing all 592 articles
Browse latest View live