iPhone UIDatePicker blue highlight doesn't update on new picker row - iphone

I am using an UIDatePicker in my application. When the application loads up, the picker updates to todays date and the row is highlighted in Blue as shown:
However, when I change the values in the picker, the Blue highlight does not move along to the newly selected date, here is a screen shot (notice how the old values still hold the blue highlight) :
I am adding the UIDatePicker via IB and connected with IBOutlet UIDatePicker *picker
Does anyone know a resolution here?
Thanks everyone!

I don't know that you found a bug, as much as you found a "feature." The highlighting appears to be intended to allow your user to get back to today's date. If you really don't like the highlighting, you're probably best off implementing your own custom picker.

Related

How to modify new Date Picker in SwiftUI?

In the last update of SwiftUI, there we have got a couple of new DatePicker styles. I was trying to modify the default appearance of DatePicker. However could not find a way to do so.
This is the default view right now. I would like to resize the button and also would like to change the background colour (like making it completely transparent).
Could any one please suggest a proper way to do these modification?

how to make calendar that apple made as default in swift?

I just wonder that in the calendar that apple made as default if you click day in month than view' space are split
this space change can be made by just segue??
am I have to make segue and then do the detail about height and width??
I want to get idea about this problem
you can see my project in https://github.com/shinhyogeun/Calendar.git

SWIFT | How to get start time and end time from user?

i have an app and i have made a custom mode for the user ( similar to do not disturb mode ).
I want the user to be able to set the start time and end time of that mode manually ( either by picker or slider ) along with AM/PM mode or 24 hour format but it is not possible.
I thought i could achieve this with datepicker time mode but i do not want to present two textfield.
the counter version for this on android looks something like the image below. The UI is not important to me but only the functionality is.
Can anyone help me with this or point me in the right direction ?!
Any help is appreciated.
date picker method will need two fields as i mentioned with is a problem. also the problem with date picker is that it should not look like a textfield so i prefer a UIBUTTON so i can set the image for the button.

Disable the highlighted date in UIDatePicker

Is it possible to completely disable the highlighted date in the UIDatePicker.Dont want to show the blue color for any dates
I think it is default behavior of UIDatePicker. So it is not possible. So better option is
that you can use a customize Date picker.

UIActionsSheet text shadow problem

I have a problem with the text shadow of the UIActionSheet buttons. At iOS 4.0.2 long string were truncated automatically. No at iOS 4.2 these texts are presented with a smaller font. But now the offset of the shadow is corrupted and to big.
Is there a possibility to change/remove the text shadow of the UIActionSheet.
EDIT: I'm building the UIActionSheet not with initWithTitle:, but with the normal init and sets all needed properties afterwards because the number of possible buttons is dynamic and the texts cannot be change. I've tested it with initWithTitle: and got the same results.
You can refer this to truncate your string before displaying it in a UIActionSheet.
I can think there are two workarounds for this (although I would not them myself in my application, reason listed below the workarounds):
In the first case you access the sublayers of UIActionSheet, get the labels, change the shadowOffset and shadowColor before presenting the actionsheet.
Secondly you can initialize the actionsheet with blank titles and add your own labels as subviews on the actionsheet at right places. (More tricky then the first approach).
Now the first approach is very risky as the layer structure of UIActionSheet can be changed by apple in future updates, hence your application may break and would not give good results.
Continuing with second approach is good only when you can calculate the exact frames where you should put your lebels so that they look good. But in your case the number of buttons would also vary, so this approach will take a lot of time initially to get the things working.
Hence, I would go for truncating the strings before I set them as the title of buttons.
Not sure how much would this help. But I am sure that truncating strings before setting them as titles is the best option.
are you doing anything non default for displaying the text?
If you only use UIActionSheet-initWithTitle:… you should write a bug report to Apple.
OR shorten the text to "Frankfurt International (FRA), DE" ;)
This appears to be fixed in 4.30. I found no way of fixing it in 4.2x.