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

UIPickerView won't allow changing font name and size via delegate's...

I use the following func to change the font color and font size, the color works but the font name and font size refuse to work. func pickerView(pickerView: UIPickerView, attributedTitleForRow row:...

View Article


UIPickerView delegate never called when created programatically

I am creating UIPickerView programatically and then adding it to UIAlertController. I've also created a class called StringPickerDelegate, which implements the picker's delegate and data source...

View Article


Problem populating textfield from UIPickerView in an AlertController

Noob with a problem. I'm trying to use an alert controller that will take two inputs: one from a textfield, which will be manually entered text, the other is a selection from a UIPicker. The text...

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

UIPicker detect tap on currently selected row

I have a UIPickerView and The method didSelectRow is not called when tapping on a selected row. I need to handle this case. Any ideas?

View Article


Change colour of UIPickerView selection indicators

Our UIPickerView has a dark background and the selection lines are incredibly hard to see. Is there anyway to change them to a colour of my choosing?Update: I'm talking about the --- above and below...

View Article

How do I get a list of countries in Swift ios?

I've already seen two similar questions to mine, but the answers for those questions do not work for me. I have an old project with a list of countries manually typed out inside a set of square...

View Article

Image may be NSFW.
Clik here to view.

Setting font using NSAttributedString

Trying change font in my pickerView using NSAttributedString:public func pickerView(_ pickerView: UIPickerView, attributedTitleForRow row: Int, forComponent component: Int) -> NSAttributedString? {...

View Article


Image may be NSFW.
Clik here to view.

iOS 14 PickerView cutting off text

I Have a pickerview which does not display text properly as off iOS 14. Does anyone know how to fix this? It seems like there is a subview covering the text?Is it because I'm using a custom label?func...

View Article


Image may be NSFW.
Clik here to view.

Pickerview showing values on both sides

How to remove the values on the left side of the picker view? Both pickerviews are scrolling separately, it seems like the two picker views are opening side by side?This is how it is looking:My...

View Article

Image may be NSFW.
Clik here to view.

Swift: Custom DatePicker with UIPicker

Hello.What would the best approach be to create a custom UIDatePicker?I need to make something kind of like the picture, though with columns being: days, months, years. And also being able to display...

View Article

Image may be NSFW.
Clik here to view.

Swift: UIPickerView and text misalignment and iOS 14

I changed nothing in my code but since I use Xcode 12 my UIPickerview has a strange text alignment when scrolling. Is that a bug in Xcode 12?

View Article

Image may be NSFW.
Clik here to view.

How to print nested JSON values into textfield using PickerView in Swift UI?

I'm trying to fetch city names and district names using JSON. By using pickerview, I want to write into the textfield chosen city names and district names. I can change the district part when changing...

View Article


Not able to save selected value from a UIPickerView to an array

So far I have tried to usefunc pickerView1(_ helpTypePicker: UIPickerView, didSelectRow row: Int, inComponent component: Int { infoListInit.requestInfoList[4] = (helpTypePickerValues[row]) }But the...

View Article

PickerView to return values from 3d array into label

I need help from the experts. I am a beginner at Swift and now posing my first question. So please forgive all my rockie mistakes. I felt really successful when I managed to create a pickerview as show...

View Article


How to implement TextField search result to filter tableview values Swift

I have created a pickerView to pick value into custom textField bar on top of the ViewController to filter data values in UITableView. As I have a nested type of JSON so couldn't properly get how to...

View Article

Image may be NSFW.
Clik here to view.

UIPickerView rendering incorrectly after iOS 14/Xcode 12.0.1 update

Anybody notice that the text in your application's UIPickerViews is rendered incorrectly, with the first character cut off? I'm seeing this in all UIPickerViews in my app, on multiple devices. You can...

View Article


UIPickerView set selected row background color (now also for iOS 14)

I found this code here:- (UIView *)pickerView:(UIPickerView *)pickerView viewForRow:(NSInteger)row forComponent:(NSInteger)component reusingView:(UIView *)view{ UILabel *label = (UILabel*) view; if...

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

Set Different Sizes for UIPickerView Rows

Is it possible to set a different size for each row in a UIPickerView or do they all need to have the same height?This is what I've tried, but it returns the same height for all rows: public func...

View Article
Browsing all 594 articles
Browse latest View live


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