How create a MonthPicker in SwiftUI?
I would like display a date picker contained only month and year.The default DatePicker display day, month and year. It's not possible to remove day and set a min and max date.How generate this...
View ArticleOption selected from one of the picker view duplicates in another picker view...
I've a survey with 8 questions and each question has a picker view with options loading from the server. This is in the UI Collection View. The survey works fine upto 5 questions but when we added more...
View ArticleCan I customize UIPickerView like this?
I have to making UIPickerView. My designer request like this.But iOS default UIPickerView is not working like that. So I think I have to customize UIPickerView. But is it possible? I don't know if it's...
View ArticleIs there a way to create separate forms inside each UITableViewCell of a...
I want to create a table view where each cell is an individual form. I have been following this approach for the dropdown behavior that I want for the forms. Also, here is an idea of how I want each...
View ArticleUIPickerView BarButton Text Color is not change but when click on button then...
I have issue I have set UIPickerViewBarButton title color to blue but it not give the perfect output but when I click on that button it gives the output means it change the color to blue but I don't...
View Articlehow we can use 2 UIPicker on the same controller?
Xcode 11 ; Swift 4How I can use 2 UIPicker on the same controller? For example in the code below I would like to simple compare value of UIPicker 1 and value of UIPicker2. Thanks!It should be something...
View ArticleHow to change the var when selecting specific value on the Picker (SwiftUI)
I need the useRed value to change to true when selecting 0% in the UI picker (or tipPercentage becomes 4).I tried the following but the warning "Modifying state during view update, this will cause...
View ArticleHow to implement a multiple conversions in pickerView in objective-c
I am trying to create a conversion app. I have three units to convert: temperature (fahrenheit, pounds and miles to their metric counterparts).I want to use a picker view, but I am having difficulties...
View ArticleUIPickerView inside a Custom UITableViewCell not initialising, awakeFromNib()...
I'm trying to get a UIPickerView inside a custom UITableViewCell to load. The cell loads fine, and I'm able to pass the data (an array of strings) from the UITableViewController to the custom cell...
View ArticleIs it possible to load firebase data to UIPickerViewOptions?
I understand I could have let pickOptions = ["", "11", "12", "13", "14"]. If I have two data stored under my "post" category on my Firebase:example: when I load data in my app, I have var post: Post? {...
View ArticleCan I programmatically scroll to a desired row in UIPickerView?
By default the first row is highlighted after initializing the UIPickerView. How do i highlight a particular row or scroll to particular row programmatically?
View ArticleSwift: 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 ArticleHow to show a UIPicker on click of a text field in a particular table view...
I am having a table view controller with a custom prototype cell.The prototype cell has one textfield on the left(Heading) and another textfield on the right(Value).This table view displays various...
View ArticleHow to make pickerView automatically show a value?
I am having trouble getting my picker view to show an initial value on app launch. The picker views work correctly other than this one issue.let brand = ["Fox"] let series = ["RC1"]func...
View ArticleHow to Solve problem UIPickerView Fatal error: Index out of range [IOS Swift...
I'm trying to Get the selected value of UIPickerView when running App. But I get error,Fatal error: Index out of rangeI debug by print("selected ==>\(selected)") in numberOfRowsInComponent function....
View ArticleHow to get data selected from UIPickerView and display it on a different View...
I would like to show a user different screens depending on what they choose in a UIPickerView. What would be the best way to implement this? Thanks!import UIKit class SelectKitViewController:...
View ArticleUIPickerView PanGesture is coinciding with Modally presented VC dismiss gesture
I have added simple UIPickerView in PresentedViewController as shown below, but problem is when I am swapping down at red point, Instead of reaction from UIPickerView whole ViewController in coming...
View ArticleHow do I reload/refresh the UIPickerView (with new data array) based on...
IF I wanted a picker, for states/provinces, i haven't seen an example, but I mocked up shown above, a picker for US/Can/Mex. wondering can you dynamically switch the NSMutableArray for the UIPickerView...
View ArticleIs it possible to use UIPickerView with data from Firebase Realtime Database?
I have a firebase database with users, and in my app I want to have a PickerView where you can see all the emails/information on that one user. Is it possible to create this using Xcode? my code:...
View ArticleSwift - Paging UICollectionView by cell while keeping the cell horizontally...
First, not sure if the title is correct or offers the best description but I'm not sure what else to use.So, i'm working on an app and I reached a section where I got stuck while implementing the UI....
View Article