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

Source type 1 not available

I have an app for iPhone and iPad, and when I try to load an UIPickerViewController in a UIPopoverController for iPad I get the Exception "Source type 1 not available". getting the problem even though...

View Article


Image may be NSFW.
Clik here to view.

UIPicker View Rotate Support

I have a universal iOS 6 Application that supports both landscape and portrait orientations. I have a view that consists of a UIPickerView at the bottom and a label near the top. On an iPad or iPad...

View Article


Image may be NSFW.
Clik here to view.

Populating a UIPickerView with data from UITableView

So I have a UITableView on one ViewController which held rows of data then a PickerView on another ViewController that I want to show each line from the TableView. So far I have a UITableView with 130...

View Article

iOS, UIPickerView create programmatically, empty view, delegates work

@Hey everybody, I have trouble w/ UIPickerView. I'm planning to create a view controller which should allow user to specify the one of the next day. PickerView should show strings like "wed, 1 Dec",...

View Article

SwiftUI Picker with Enum Source Is Not Enabled

I'm trying to understand the new SwiftUI picker style, especially with data from a source other than an array. I have built a picker with an enum. I first made a simple app with only the picker and...

View Article


Image may be NSFW.
Clik here to view.

How to prevent buttons to be triggered while dragging the UIPickerView?

I created a custom action sheet that contains one UIPickerView and two buttons (see the image below). As I drag the roll downwards, my finger (I represented it over the screenshot) presses the button...

View Article

How to make an UIPickerView with a Done button?

I am having difficulties to make an UIPickerView with a done button to appear when the users taps a UITextField. This is my code so far. Everything builds fine, but when I tap the text field, the...

View Article

How to present JSON array in UIPickerView in alphabetical order?

I have a UIPickerView that gets data from JSON and presents it in two columns, one that shows two columns, producer and product using the following: if let url = URL(string:...

View Article


Picker Text color in DarkMode

How do set the text in a Picker control to a light color for iOS13 darkmode To support DARKMODE on IOS13 you need to set the text color to a colour that the system can change. But on the inspector,...

View Article


Swift UIPickerView defaults to last option regardless of selected option

I have a UIPickerView that when tapping the done button, keeps selecting the last option of the Array. I can tap on either the UITextField or a button I'm using that assigns the UITextField as the...

View Article

Populate PickerView with data from Firebase

I have just created a firebase database which consists of having a question and 4 choices of answers and a correct answer. I am struggling to populate the picker view with the data from firebase. I...

View Article

SwiftUI - Using CoreData Fetched Result to Populate Picker

I'm following every guide I've seen online to bring in the managed object to the SwiftUI scene with environment and then run a @FetchRequest in the scene, all of it works great. I can use that result...

View Article

I can't set the uipickerview datasource and delegate from an outside file

I can't seem to set my outside pickerview datasource and delegate to my main view. Is there away I can set it? I want to keep my pickerview in a separate file due to other future views that might use...

View Article


Image may be NSFW.
Clik here to view.

iOS UIPickerView - Appearance

Is there any way to get the picker view in Xcode 6 to appear as it was in Xcode 4? (source: timroadley.com) (source: developpez.com) Thank you.

View Article

How do I change the text color of UIPickerView with multiple components in...

Below code will change the font colour of the picker view of all 3 components. However, it crash when I try to spin the wheel. I think it has to do with the didSelectRow function. Maybe the two...

View Article


Is there a way to stop UIDatePicker from scrolling/rotating?

So i want to replicate choosing a date in calendar app, i create a view that is showed/hidden if user taps on date label but if user taps on date label and flics picker and then taps on label to hide...

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


Picker delegate scrolling method in SwiftUI

I have simple Picker object in my SwiftUI hierarchy: Picker(selection: $pickerSelection, label: Text("Select your item")) { ForEach(0 ..< items.count) { Text("\(self.items[$0].valueCode)") .tag($0)...

View Article

Detect when UIPickerView starts changing / moving

I'm trying to react to the event that a UIPickerView started moving (not when the row was already selected). I have searched throughout the delegate methods, and none helped. I also tried to register...

View Article

How can I make separate picker view in one view controller?

My question about picker view. I have two textfield and these are connect picker view but when I try to make selection these two textfields text become same. I already try make tag for picker view but...

View Article
Browsing all 592 articles
Browse latest View live


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