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

How to detect changes on UIPickerView?

I want to detect changes of UIPickerView value.If UIPickerView respond to addTarget I used a code like this: -(void) valueChange:(id)sender { change = YES; } UIPickerView *questionPicker =...

View Article


Is UITextField+UIPickerView supported under Mac Catalyst?

In my iOS app I have a textfield with a picker view assigned to it's inputView. On iOS devices the picker view pops up whenever the user taps the textfield. The same code does not do that, however,...

View Article


Image may be NSFW.
Clik here to view.

Force UIPickerView reload data

I have UITableViewController with 2 dynamic cells(one for a cell with detail and one for UIPickerView). Programatically I create 2 sections with 1 row(1 section) and 2 row(2 section). Rows open up...

View Article

Im populating a PickerView from Core data and getting the error Index Out Of...

I am very new to swift and Im trying to understand populating UIPickerView with CoreData. After following a video on doing this with UITableView I have implemented the same code for a UIPickerView. The...

View Article

Adding a UIBarButtonItem to my UIPickerView is throwing me a constraint error

I only see this error when I add the barButtonItem "Done" button to my UIPickerView. Here is the error that I'm seeing. What am I doing wrong? func PickerToolBar(){ let toolBar = UIToolbar()...

View Article


How can I change the choices in a pickerview based on another pickervew?

Picture of current versionI currently have two picker views. Ones a country picker view(US and Canada) and the other is a state picker view. I'd like to have it so when USA is selected it displays US...

View Article

Responding to touchesBegan in UIPickerView instead of UIView

I have a UIPickerView that gets faded out to 20% alpha when not in use. I want the user to be able to touch the picker and have it fade back in.I can get it to work if I put a touchesBegan method on...

View Article

How to use data for more than one UIPickerView using didSelectRow

Got a problem, cannot figure out how to use data from more than UIPickerView using didSelectRow method.Problem is that components and rows are not separate, is there any chance to use separate rows and...

View Article


How to set title above each component of a UIPickerView?

I implemented a UIPickerview with 2 components. I want to set a title above each one. How can I do that?I don't want do place a separate label above the picker.

View Article


Picker View - Textfield not updating

I am trying to make a drop down list and is experimenting with using the PickerView. But i could not find a way to update the textfield after selecting the items in the Picker View.I suspect the...

View Article

Accessibility - UIPickerView as inputView

I'm using a UIPickerView as an inputView of UITextField.self.pickerView = [[UIPickerView alloc]initWithFrame:CGRectZero]; self.pickerView.dataSource = self.datasource; self.pickerView.delegate =...

View Article

Fixed labels in the selection bar of a UIPickerView

In the clocks application, the timer screen shows a picker (probably a UIPicker in UIDatePickerModeCountDownTimer mode) with some text in the selection bar ("hours" and "mins" in this case).(edit) Note...

View Article

obj-c: iPhone programming: change selection on pickerview programmatically

I got a pickerview and I want to add a code that will automatically show at the user the row I want.

View Article


Reuse of one uipickerview for any textfield and there has to be only one...

I am using 3 uipickerview from storyboard for country state and city type of data. My main question is can i use one uipickerview and reuse that uipickerview for country state and city too. And all...

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


PickerView for multiple text fields is just showing one Array

I have a weird problem but I guess you guys can show me the mistake pretty easy. I am using a picker view for multiple text fields. But it only shows the "last array" for every text field and pushes on...

View Article

Image may be NSFW.
Clik here to view.

How do I setup a second component with a UIPickerView

I've found some similar questions to this but none of the solutions matched my situation, and most were in objective-c which I don't know.I'm trying to create a timer with minutes and seconds but I...

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

Unnecessary to adopt to datasource when using UIPickerView in iOS app?

From the documentation, it looks like when you uses UIPickerView class, you MUST adopt to UIPickerViewDelegate and UIPickerViewDataSource protocol. However, even if I didn't adopt to...

View Article

How to change UIPickerView font size

How do I change the font size. My code below is not working. I'm using xcode7.1 and swift 2 on iOS 9.1.func pickerView(pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component:...

View Article
Browsing all 592 articles
Browse latest View live


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